Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
simulation: Clippy lint fix
Adrian Duke committed 9 days ago
commit 38a09c4313de1e3cb2a0be9fc076ed03549c4ea6
parent 8395d6daf77246a71d4a575e7227e02d64609b1b
1 file changed +8 -8
modified simulation/radicle-simulation/src/network.rs
@@ -14,14 +14,14 @@ pub struct NetworkGuard {

impl Drop for NetworkGuard {
    fn drop(&mut self) {
-
        if let Ok(val) = std::env::var("PRESERVE_NETWORK") {
-
            if val == "1" || val.eq_ignore_ascii_case("true") {
-
                println!(
-
                    "⏭️ PRESERVE_NETWORK is set. Skipping cleanup for {}.",
-
                    self.cue_path
-
                );
-
                return;
-
            }
+
        if let Ok(val) = std::env::var("PRESERVE_NETWORK")
+
            && (val == "1" || val.eq_ignore_ascii_case("true"))
+
        {
+
            println!(
+
                "⏭️ PRESERVE_NETWORK is set. Skipping cleanup for {}.",
+
                self.cue_path
+
            );
+
            return;
        }

        println!("🔄 Tearing down network topology from {}...", self.cue_path);