From 41aa6a2bedff08ea6189a309f9e818ae947c4461 Mon Sep 17 00:00:00 2001 From: Michal Date: Mon, 25 Jul 2022 01:13:16 +0100 Subject: [PATCH] fmt --- src/operations/clone.rs | 5 ++++- src/operations/prune.rs | 7 ++++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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() ); } }