diff options
| author | Maximilian Roos <m@maxroos.com> | 2018-09-01 16:26:47 -0400 |
|---|---|---|
| committer | Maximilian Roos <m@maxroos.com> | 2018-09-01 16:32:38 -0400 |
| commit | 968affc3e0bd713d2e4c46f273eca8b988c469ae (patch) | |
| tree | af70af41792b8080d88ceecaf8fc07afe5c9e7d0 /src/test | |
| parent | b1da2a53b489f86c17771a2b77acabdd236a115d (diff) | |
final clippy changes
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/mod.rs b/src/test/mod.rs index 8b2358f1ada..17f8ffec9a1 100644 --- a/src/test/mod.rs +++ b/src/test/mod.rs @@ -102,7 +102,7 @@ fn verify_config_test_names() { // `print_diff` selects the approach not used. fn write_message(msg: &str) { let mut writer = OutputWriter::new(Color::Auto); - writer.writeln(&format!("{}", msg), None); + writer.writeln(msg, None); } // Integration tests. The files in the tests/source are formatted and compared @@ -949,7 +949,7 @@ fn rustfmt() -> PathBuf { me.is_file() || me.with_extension("exe").is_file(), "no rustfmt bin, try running `cargo build` before testing" ); - return me; + me } #[test] |
