about summary refs log tree commit diff
path: root/src/librustpkg/package_path.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustpkg/package_path.rs')
-rw-r--r--src/librustpkg/package_path.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustpkg/package_path.rs b/src/librustpkg/package_path.rs
index a54f9ad152f..98ff2751545 100644
--- a/src/librustpkg/package_path.rs
+++ b/src/librustpkg/package_path.rs
@@ -44,8 +44,7 @@ pub fn normalize(p_: RemotePath) -> LocalPath {
 }
 
 pub fn write<W: Writer>(writer: &mut W, string: &str) {
-    let buffer = str::as_bytes_slice(string);
-    writer.write(buffer);
+    writer.write(string.as_bytes());
 }
 
 pub fn hash(data: ~str) -> ~str {