diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-03-06 15:37:14 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-03-06 15:37:14 -0800 |
| commit | 2bd02ca83737e66ef004673373709fdc9ad9255d (patch) | |
| tree | 413cea0c48816b66450d9dbcefac985b1d3035ce /src/libstd/path.rs | |
| parent | fd86a01bb9f23921c82017485d88fe14448e78fe (diff) | |
| parent | 628f5d29c3b93bbd590e08dc2c69f842a18d1231 (diff) | |
| download | rust-2bd02ca83737e66ef004673373709fdc9ad9255d.tar.gz rust-2bd02ca83737e66ef004673373709fdc9ad9255d.zip | |
rollup merge of #22975: alexcrichton/stabilize-ffi
Conflicts: src/librustc_trans/back/link.rs src/librustc_trans/lib.rs
Diffstat (limited to 'src/libstd/path.rs')
| -rw-r--r-- | src/libstd/path.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs index 2b22eef44f6..ad8e17fed24 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -872,10 +872,10 @@ impl PathBuf { // `path` is a pure relative path } else if need_sep { - self.inner.push_os_str(OsStr::from_str(MAIN_SEP_STR)); + self.inner.push(MAIN_SEP_STR); } - self.inner.push_os_str(path.as_os_str()); + self.inner.push(path); } /// Truncate `self` to `self.parent()`. @@ -937,8 +937,8 @@ impl PathBuf { let extension = extension.as_os_str(); if os_str_as_u8_slice(extension).len() > 0 { - stem.push_os_str(OsStr::from_str(".")); - stem.push_os_str(extension.as_os_str()); + stem.push("."); + stem.push(extension); } self.set_file_name(&stem); |
