diff options
author | cyqsimon <28627918+cyqsimon@users.noreply.github.com> | 2023-08-25 20:16:33 +0800 |
---|---|---|
committer | cyqsimon <28627918+cyqsimon@users.noreply.github.com> | 2023-08-25 20:16:33 +0800 |
commit | 42ae443bd3c3eb8150a8b0a0a681bc8ab315214f (patch) | |
tree | c14fd72169bddd87133d4258d9a25c8701fedc1a /src/tests | |
parent | fb176a5212e2e1aba41e181648723e8048da2a2c (diff) |
Use variable capture syntax in format macros where possible
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/cases/raw_mode.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/cases/raw_mode.rs b/src/tests/cases/raw_mode.rs index c382a2b..c05596e 100644 --- a/src/tests/cases/raw_mode.rs +++ b/src/tests/cases/raw_mode.rs @@ -42,7 +42,7 @@ fn format_raw_output(output: Vec<u8>) -> String { use regex::Regex; let timestamp = Regex::new(r"<\d+>").unwrap(); let replaced = timestamp.replace_all(&stdout_utf8, "<TIMESTAMP_REMOVED>"); - format!("{}", replaced) + format!("{replaced}") } #[test] |