diff --git a/src/operations/clone.rs b/src/operations/clone.rs index 097b38b..3aa1477 100644 --- a/src/operations/clone.rs +++ b/src/operations/clone.rs @@ -18,7 +18,10 @@ pub fn clone(verbose: bool) { dirs.retain(|x| *x != "./mlc.toml" && *x != ".\\mlc.toml"); dirs.retain(|x| *x != "./out" && *x != ".\\out"); if config.mode.repository.is_some() { - dirs.retain(|x| *x != format!("./{}", config.mode.repository.as_ref().unwrap().name) && *x != format!(".\\{}", config.mode.repository.as_ref().unwrap().name)); + dirs.retain(|x| { + *x != format!("./{}", config.mode.repository.as_ref().unwrap().name) + && *x != format!(".\\{}", config.mode.repository.as_ref().unwrap().name) + }); } log!(verbose, "Paths with mlc.toml excluded: {:?}", dirs); diff --git a/src/operations/prune.rs b/src/operations/prune.rs index fe38a68..20ffc10 100644 --- a/src/operations/prune.rs +++ b/src/operations/prune.rs @@ -120,7 +120,12 @@ pub fn prune(verbose: bool) { for p in &mut packages_to_delete { println!( "{}", - format!(" {}-{}", p.name.replace("./", "").replace(".\\", ""), p.ver).bold() + format!( + " {}-{}", + p.name.replace("./", "").replace(".\\", ""), + p.ver + ) + .bold() ); } }