diff options
author | notgne2 | 2021-01-08 18:28:45 -0700 |
---|---|---|
committer | notgne2 | 2021-01-08 18:28:45 -0700 |
commit | 1789551855a8290caad59d3849bab16c56158c70 (patch) | |
tree | 2dbd325d2aa78664f42071a8a1b3278418068ff6 /src/bin | |
parent | 70c55363a91572790ba5d49b70c58040f112e55c (diff) |
Fix trivial lint issues
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/activate.rs | 3 | ||||
-rw-r--r-- | src/bin/deploy.rs | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/bin/activate.rs b/src/bin/activate.rs index 554702c..bf8c907 100644 --- a/src/bin/activate.rs +++ b/src/bin/activate.rs @@ -23,7 +23,6 @@ use thiserror::Error; #[macro_use] extern crate log; -#[macro_use] extern crate serde_derive; /// Remote activation utility for deploy-rs @@ -426,7 +425,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> { // Ensure that this process stays alive after the SSH connection dies let mut signals = Signals::new(&[SIGHUP])?; std::thread::spawn(move || { - for sig in signals.forever() { + for _ in signals.forever() { println!("Received NOHUP - ignoring..."); } }); diff --git a/src/bin/deploy.rs b/src/bin/deploy.rs index 0381525..4620a1c 100644 --- a/src/bin/deploy.rs +++ b/src/bin/deploy.rs @@ -229,7 +229,7 @@ fn print_deployment( for (data, defs) in parts { part_map .entry(data.node_name.to_string()) - .or_insert(HashMap::new()) + .or_insert_with(HashMap::new) .insert( data.profile_name.to_string(), PromptPart { |