From c33f8a358505f57b0dc738d4c1e233cfc5a6793c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20S=C3=A1=20de=20Mello?= Date: Tue, 15 Oct 2024 00:16:46 +0100 Subject: [PATCH] use associated type bound --- src/pointer.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/pointer.rs b/src/pointer.rs index 120534b..e09cf5d 100644 --- a/src/pointer.rs +++ b/src/pointer.rs @@ -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) -> Self - where - T: Into>, - { + pub fn from_tokens<'t>(tokens: impl IntoIterator>>) -> Self { let mut inner = String::new(); for t in tokens.into_iter().map(Into::into) { inner.push('/');