Skip to content

Commit

Permalink
chore(client): run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dj95 committed Oct 14, 2023
1 parent 897ec99 commit 8118ef7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ fn main() {
}
}

if let Some(Command::Sessions(Sessions::ListSessions { no_formatting, short })) = opts.command {
if let Some(Command::Sessions(Sessions::ListSessions {
no_formatting,
short,
})) = opts.command
{
commands::list_sessions(no_formatting, short);
} else if let Some(Command::Sessions(Sessions::KillAllSessions { yes })) = opts.command {
commands::kill_all_sessions(yes);
Expand Down
6 changes: 5 additions & 1 deletion src/sessions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,11 @@ fn assert_socket(name: &str) -> bool {
}
}

pub(crate) fn print_sessions(mut sessions: Vec<(String, Duration, bool)>, no_formatting: bool, short: bool) {
pub(crate) fn print_sessions(
mut sessions: Vec<(String, Duration, bool)>,
no_formatting: bool,
short: bool,
) {
// (session_name, timestamp, is_dead)
let curr_session = envs::get_session_name().unwrap_or_else(|_| "".into());
sessions.sort_by(|a, b| a.1.cmp(&b.1));
Expand Down

0 comments on commit 8118ef7

Please sign in to comment.