about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorMaximilian Roos <m@maxroos.com>2018-09-01 16:26:47 -0400
committerMaximilian Roos <m@maxroos.com>2018-09-01 16:32:38 -0400
commit968affc3e0bd713d2e4c46f273eca8b988c469ae (patch)
treeaf70af41792b8080d88ceecaf8fc07afe5c9e7d0 /src/test
parentb1da2a53b489f86c17771a2b77acabdd236a115d (diff)
final clippy changes
Diffstat (limited to 'src/test')
-rw-r--r--src/test/mod.rs4
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]