From 05ebdab1203a427a4ad7cea84bcbd6bbbe4feffc Mon Sep 17 00:00:00 2001 From: John-John Tedro Date: Mon, 29 Dec 2025 16:08:34 +0100 Subject: [PATCH] Fix clippy lint --- src/strspan.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strspan.rs b/src/strspan.rs index ecb0bec..63e759a 100644 --- a/src/strspan.rs +++ b/src/strspan.rs @@ -46,7 +46,7 @@ impl PartialEq> for &str { impl<'a> StrSpan<'a> { /// Constructs a new `StrSpan` from substring. #[inline] - pub(crate) fn from_substr(text: &str, start: usize, end: usize) -> StrSpan { + pub(crate) fn from_substr(text: &str, start: usize, end: usize) -> StrSpan<'_> { debug_assert!(start <= end); StrSpan { text: &text[start..end],