remove unnessary pub

This commit is contained in:
2020-04-03 08:12:54 +08:00
parent 2f7ff048a7
commit ab3e69997b
3 changed files with 15 additions and 14 deletions

View File

@@ -130,11 +130,11 @@ pub fn remove_start_end_slash(s: &str) -> String {
let mut ss = s;
while ss.starts_with("/") {
ss = &ss[1..]
}
while ss.ends_with("/") {
}
while ss.ends_with("/") {
ss = &ss[0..(ss.len() - 1)];
}
ss.to_string()
}
ss.to_string()
}
pub fn parse_config(config_json: &json::JsonValue) -> OSSBackupdConfig {