Skip to content

Commit 208928e

Browse files
committed
Fix lint warning for elided lifetimes
1 parent a51fcea commit 208928e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ansi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ fn find_ansi_code_exclusive(it: &mut Peekable<CharIndices>) -> Option<(usize, us
189189

190190
/// Helper function to strip ansi codes.
191191
#[cfg(feature = "alloc")]
192-
pub fn strip_ansi_codes(s: &str) -> Cow<str> {
192+
pub fn strip_ansi_codes(s: &str) -> Cow<'_, str> {
193193
let mut char_it = s.char_indices().peekable();
194194
match find_ansi_code_exclusive(&mut char_it) {
195195
Some(_) => {

0 commit comments

Comments
 (0)