diff options
| author | Jason Newcomb <jsnewcomb@pm.me> | 2022-01-11 14:31:35 -0500 |
|---|---|---|
| committer | Jason Newcomb <jsnewcomb@pm.me> | 2022-01-22 20:35:32 -0500 |
| commit | 9e9110e4f3fd8d982dbde873b0c5168b8a3968ed (patch) | |
| tree | 060de539571b72d5b8cd8e415b5b2387d2826176 /tests/ui/writeln_empty_string.fixed | |
| parent | 15c068ed0f4d231beabb22975cbca7fd33996ce5 (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.fixed | 10 |
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, ""); } |
