std: convert str::replace to a method.
This commit is contained in:
parent
12750c8893
commit
9e60e2e297
13 changed files with 64 additions and 67 deletions
|
|
@ -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))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue