about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/writeln_empty_string.fixed
diff options
context:
space:
mode:
authorflip1995 <philipp.krones@embecosm.com>2022-01-27 15:12:45 +0100
committerflip1995 <philipp.krones@embecosm.com>2022-01-27 15:12:45 +0100
commitcce9231c19378f57b05f3c8b09df317c3a512f82 (patch)
treea99668f41abff07226f0f43c4555d1ccfea46804 /src/tools/clippy/tests/ui/writeln_empty_string.fixed
parent21b4a9cfdcbb1e76f4b36b5c3cfd64d627285093 (diff)
parenta98e7ab8b94485be6bd03e0c6b8682ecab5b52e6 (diff)
downloadrust-cce9231c19378f57b05f3c8b09df317c3a512f82.tar.gz
rust-cce9231c19378f57b05f3c8b09df317c3a512f82.zip
Merge commit 'a98e7ab8b94485be6bd03e0c6b8682ecab5b52e6' into clippyup
Diffstat (limited to 'src/tools/clippy/tests/ui/writeln_empty_string.fixed')
-rw-r--r--src/tools/clippy/tests/ui/writeln_empty_string.fixed10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tools/clippy/tests/ui/writeln_empty_string.fixed b/src/tools/clippy/tests/ui/writeln_empty_string.fixed
index c3ac15b0375..e7d94acd130 100644
--- a/src/tools/clippy/tests/ui/writeln_empty_string.fixed
+++ b/src/tools/clippy/tests/ui/writeln_empty_string.fixed
@@ -8,13 +8,13 @@ fn main() {
     let mut v = Vec::new();
 
     // These should fail
-    writeln!(&mut v);
+    writeln!(v);
 
     let mut suggestion = Vec::new();
-    writeln!(&mut suggestion);
+    writeln!(suggestion);
 
     // These should be fine
-    writeln!(&mut v);
-    writeln!(&mut v, " ");
-    write!(&mut v, "");
+    writeln!(v);
+    writeln!(v, " ");
+    write!(v, "");
 }