fn mocked_pager: Simplify with format!

pull/1402/head
Martin Nordholts 4 years ago
parent dd6f57e107
commit c2c2b0211a

@ -54,9 +54,7 @@ fn get_mocked_pagers_dir() -> PathBuf {
/// On Windows: 'most' -> 'most.bat'
fn mocked_pager(base: &str) -> String {
if cfg!(windows) {
let mut str = String::from(base);
str.push_str(".bat");
str
format!("{}.bat", base)
} else {
String::from(base)
}

Loading…
Cancel
Save