chore(clippy): fix warnings from nightly

This commit is contained in:
graelo 2022-12-10 15:58:44 +01:00
parent ea8b25c2a7
commit f08cf307c6
5 changed files with 9 additions and 23 deletions

View file

@ -141,7 +141,7 @@ impl FromStr for PaneId {
return Err(Error::ExpectedPaneIdMarker);
}
let id = src[1..].parse::<u16>()?;
let id = format!("%{}", id);
let id = format!("%{id}");
Ok(PaneId(id))
}
}
@ -189,7 +189,7 @@ pub fn get_options(prefix: &str) -> Result<HashMap<String, String>> {
let output = duct::cmd!("tmux", "show-options", "-g").read()?;
let lines: Vec<&str> = output.split('\n').collect();
let pattern = format!(r#"({prefix}[\w\-0-9]+) "?(\w+)"?"#, prefix = prefix);
let pattern = format!(r#"({prefix}[\w\-0-9]+) "?(\w+)"?"#);
let re = Regex::new(&pattern).unwrap();
let args: HashMap<String, String> = lines