Skip to content

Commit

Permalink
Apply review suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Fridtjof Stoldt <[email protected]>
  • Loading branch information
meithecatte and xFrednet authored Jul 24, 2024
1 parent c6cc160 commit 5778e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ui/needless_borrows_for_generic_args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ fn main() {
{
fn takes_writer<T: std::io::Write>(_: T) {}

fn f(mut buffer: &mut Vec<u8>) {
fn issue_12856(mut buffer: &mut Vec<u8>) {
takes_writer(&mut buffer); // Don't lint, would make buffer unavailable later
buffer.extend(b"\n");
}
Expand Down

0 comments on commit 5778e49

Please sign in to comment.