Skip to content

Commit

Permalink
Elide unnecessary lifetime.
Browse files Browse the repository at this point in the history
  • Loading branch information
olson-sean-k committed Feb 25, 2024
1 parent 1031220 commit b7cd12e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/token/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1639,10 +1639,10 @@ pub mod harness {

use crate::token::{TokenTree, Tokenized};

pub fn assert_tokenized_invariant_path_prefix_eq<'t, A>(
tokenized: Tokenized<'t, A>,
pub fn assert_tokenized_invariant_path_prefix_eq<A>(
tokenized: Tokenized<'_, A>,
expected: impl AsRef<Path>,
) -> Tokenized<'t, A> {
) -> Tokenized<'_, A> {
let (_, text) = tokenized.as_token().invariant_text_prefix();
let text = Path::new(&text);
let expected = expected.as_ref();
Expand Down

0 comments on commit b7cd12e

Please sign in to comment.