diff options
author | Martin Nordholts <enselic@gmail.com> | 2021-01-10 13:26:40 +0100 |
---|---|---|
committer | Martin Nordholts <enselic@gmail.com> | 2021-01-10 13:26:40 +0100 |
commit | c2c2b0211a7efa2058c0cf02467db1e47413d62a (patch) | |
tree | 01ed0d797d4fa238f04059055610a1cc7f02b99a /tests | |
parent | dd6f57e1073100ab0f85f272177efe9568550940 (diff) |
fn mocked_pager: Simplify with format!
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration_tests.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index d2697564..b368ba5f 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -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) } |