Skip to content

Commit

Permalink
chore(style): inline format args
Browse files Browse the repository at this point in the history
  • Loading branch information
graelo committed Oct 26, 2022
1 parent 49a439d commit b8123ae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tmux-lib/src/pane_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub(crate) mod parse {

pub(crate) fn pane_id(input: &str) -> IResult<&str, PaneId> {
let (input, digit) = preceded(char('%'), digit1)(input)?;
let id = format!("%{}", digit);
let id = format!("%{digit}");
Ok((input, PaneId(id)))
}
}
Expand Down
2 changes: 1 addition & 1 deletion tmux-lib/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ pub async fn default_command() -> Result<String> {
.map(|cmd| cmd.to_owned())
.map(|cmd| {
if cmd.ends_with("bash") {
format!("-l {}", cmd)
format!("-l {cmd}")
} else {
cmd
}
Expand Down
2 changes: 1 addition & 1 deletion tmux-lib/src/session_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub(crate) mod parse {

pub fn session_id(input: &str) -> IResult<&str, SessionId> {
let (input, digit) = preceded(char('$'), digit1)(input)?;
let id = format!("${}", digit);
let id = format!("${digit}");
Ok((input, SessionId(id)))
}
}
Expand Down
2 changes: 1 addition & 1 deletion tmux-lib/src/window_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub(crate) mod parse {

pub(crate) fn window_id(input: &str) -> IResult<&str, WindowId> {
let (input, digit) = preceded(char('@'), digit1)(input)?;
let id = format!("@{}", digit);
let id = format!("@{digit}");
Ok((input, WindowId(id)))
}
}
Expand Down

0 comments on commit b8123ae

Please sign in to comment.