Skip to content

Commit 95b5b75

Browse files
committed
Fixed the needless_lifetimes clippy warning
Relevant lint: https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
1 parent ddb100c commit 95b5b75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ascii_art.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ fn add_colored_segment(base: &mut String, segment: &str, color: Color, bold: boo
210210

211211
type ParseResult<'a, R> = Option<(&'a str, R)>;
212212

213-
fn token<'a, R>(s: &'a str, predicate: impl FnOnce(char) -> Option<R>) -> ParseResult<'a, R> {
213+
fn token<R>(s: &str, predicate: impl FnOnce(char) -> Option<R>) -> ParseResult<R> {
214214
let token = s.chars().next()?;
215215
let result = predicate(token)?;
216216
Some((s.get(1..).unwrap(), result))

0 commit comments

Comments
 (0)