diff --git a/tests/test_parse_buffer.rs b/tests/test_parse_buffer.rs index ab8583c6f6..cc23e9ba6c 100644 --- a/tests/test_parse_buffer.rs +++ b/tests/test_parse_buffer.rs @@ -1,4 +1,4 @@ -#![allow(clippy::needless_borrow, clippy::non_ascii_literal)] +#![allow(clippy::non_ascii_literal)] use proc_macro2::{Delimiter, Group, Punct, Spacing, TokenStream, TokenTree}; use std::iter::FromIterator; @@ -12,7 +12,7 @@ fn smuggled_speculative_cursor_between_sources() { impl Parse for BreakRules { fn parse(input1: ParseStream) -> Result { let nested = |input2: ParseStream| { - input1.advance_to(&input2); + input1.advance_to(input2); Ok(Self) }; nested.parse_str("")