Skip to content

Commit

Permalink
use associated type bound
Browse files Browse the repository at this point in the history
  • Loading branch information
asmello committed Oct 14, 2024
1 parent 73ce4ac commit c33f8a3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/pointer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -815,10 +815,7 @@ impl PointerBuf {
}

/// Creates a new `PointerBuf` from a slice of non-encoded strings.
pub fn from_tokens<'a, T>(tokens: impl IntoIterator<Item = T>) -> Self
where
T: Into<Token<'a>>,
{
pub fn from_tokens<'t>(tokens: impl IntoIterator<Item: Into<Token<'t>>>) -> Self {
let mut inner = String::new();
for t in tokens.into_iter().map(Into::into) {
inner.push('/');
Expand Down

0 comments on commit c33f8a3

Please sign in to comment.