diff options
Diffstat (limited to 'src/commands.rs')
-rw-r--r-- | src/commands.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands.rs b/src/commands.rs index d1bcb4561..ec6268f21 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -40,7 +40,7 @@ pub(crate) fn kill_all_sessions(yes: bool) { process::exit(1); } } - for session in sessions.iter() { + for session in &sessions { kill_session_impl(session); } process::exit(0); @@ -131,7 +131,7 @@ fn attach_with_session_name( config_options: Options, create: bool, ) -> ClientInfo { - match session_name.as_ref() { + match &session_name { Some(session) if create => { if !session_exists(session).unwrap() { ClientInfo::New(session_name.unwrap()) |