about summary refs log tree commit diff
path: root/tests/ui/writeln_empty_string.fixed
diff options
context:
space:
mode:
authorJason Newcomb <jsnewcomb@pm.me>2022-01-11 14:31:35 -0500
committerJason Newcomb <jsnewcomb@pm.me>2022-01-22 20:35:32 -0500
commit9e9110e4f3fd8d982dbde873b0c5168b8a3968ed (patch)
tree060de539571b72d5b8cd8e415b5b2387d2826176 /tests/ui/writeln_empty_string.fixed
parent15c068ed0f4d231beabb22975cbca7fd33996ce5 (diff)
Remove final reference on fields and method calls in `needless_borrow`
Diffstat (limited to 'tests/ui/writeln_empty_string.fixed')
-rw-r--r--tests/ui/writeln_empty_string.fixed10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/ui/writeln_empty_string.fixed b/tests/ui/writeln_empty_string.fixed
index c3ac15b0375..e7d94acd130 100644
--- a/tests/ui/writeln_empty_string.fixed
+++ b/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, "");
 }