std: convert str::replace to a method.

This commit is contained in:
Huon Wilson 2013-06-11 21:46:40 +10:00
parent 12750c8893
commit 9e60e2e297
13 changed files with 64 additions and 67 deletions

View file

@ -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))
}