fn mocked_pager: Simplify with format!
commitc2c2b0211a7efa2058c0cf02467db1e47413d62a
authorMartin Nordholts <enselic@gmail.com>
dateSun 10 Jan 2021, 13:26 (6 years ago)
parentdd6f57e
tests/integration_tests.rs+1−3
@@ -54,9 +54,7 @@ fn get_mocked_pagers_dir() -> PathBuf {
5454/// On Windows: 'most' -> 'most.bat'
5555fn mocked_pager(base: &str) -> String {
5656 if cfg!(windows) {
57− let mut str = String::from(base);
58− str.push_str(".bat");
59− str
57+ format!("{}.bat", base)
6058 } else {
6159 String::from(base)
6260 }