about summary refs log tree commit diff
path: root/src/librustpkg
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2013-06-11 21:46:40 +1000
committerHuon Wilson <dbau.pp+github@gmail.com>2013-06-12 12:21:04 +1000
commit9e60e2e297cb28ec4812fd3ed6124f44ff28c642 (patch)
treea02ba6fc7a9ddd8214a370a649d355a1b52d0c97 /src/librustpkg
parent12750c88931f707e63f2ec19396710bf70a39ae8 (diff)
downloadrust-9e60e2e297cb28ec4812fd3ed6124f44ff28c642.tar.gz
rust-9e60e2e297cb28ec4812fd3ed6124f44ff28c642.zip
std: convert str::replace to a method.
Diffstat (limited to 'src/librustpkg')
-rw-r--r--src/librustpkg/package_path.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustpkg/package_path.rs b/src/librustpkg/package_path.rs
index 98ff2751545..0216b032a6d 100644
--- a/src/librustpkg/package_path.rs
+++ b/src/librustpkg/package_path.rs
@@ -32,7 +32,7 @@ pub fn normalize(p_: RemotePath) -> LocalPath {
     match p.filestem() {
         None => LocalPath(p),
         Some(st) => {
-            let replaced = str::replace(st, "-", "_");
+            let replaced = st.replace("-", "_");
             if replaced != st {
                 LocalPath(p.with_filestem(replaced))
             }