about summary refs log tree commit diff
path: root/src/libstd/fs.rs
diff options
context:
space:
mode:
authorNODA, Kai <nodakai@gmail.com>2017-07-18 00:04:46 +0800
committerNODA, Kai <nodakai@gmail.com>2017-07-18 00:07:09 +0800
commit2e8859ce4e97df8e2b1372e20efe4f8676c0f178 (patch)
tree61d2244bbfa1c7c76136b321e1ec782755876e29 /src/libstd/fs.rs
parent5803f99bd4c53c3f469df26513ffa2e058094c53 (diff)
downloadrust-2e8859ce4e97df8e2b1372e20efe4f8676c0f178.tar.gz
rust-2e8859ce4e97df8e2b1372e20efe4f8676c0f178.zip
libstd: remove redundant & from &Path::new(...)
fn Path::new<S: AsRef ...>(s: &S) -> &Path

Signed-off-by: NODA, Kai <nodakai@gmail.com>
Diffstat (limited to 'src/libstd/fs.rs')
-rw-r--r--src/libstd/fs.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/fs.rs b/src/libstd/fs.rs
index 88994b284c9..38d3312b4e7 100644
--- a/src/libstd/fs.rs
+++ b/src/libstd/fs.rs
@@ -2346,17 +2346,17 @@ mod tests {
 
     #[test]
     fn recursive_mkdir_slash() {
-        check!(fs::create_dir_all(&Path::new("/")));
+        check!(fs::create_dir_all(Path::new("/")));
     }
 
     #[test]
     fn recursive_mkdir_dot() {
-        check!(fs::create_dir_all(&Path::new(".")));
+        check!(fs::create_dir_all(Path::new(".")));
     }
 
     #[test]
     fn recursive_mkdir_empty() {
-        check!(fs::create_dir_all(&Path::new("")));
+        check!(fs::create_dir_all(Path::new("")));
     }
 
     #[test]