File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ fn get_min_start_max_end(lines: &[&str]) -> (usize, usize) {
97
97
98
98
/// Produces a series of lines which have been automatically truncated to the
99
99
/// correct width
100
- impl < ' a > Iterator for AsciiArt < ' a > {
100
+ impl Iterator for AsciiArt < ' _ > {
101
101
type Item = String ;
102
102
fn next ( & mut self ) -> Option < String > {
103
103
self . content
@@ -136,7 +136,7 @@ impl Token {
136
136
/// An iterator over tokens found within the *.ascii format.
137
137
#[ derive( Clone , Debug ) ]
138
138
struct Tokens < ' a > ( & ' a str ) ;
139
- impl < ' a > Iterator for Tokens < ' a > {
139
+ impl Iterator for Tokens < ' _ > {
140
140
type Item = Token ;
141
141
fn next ( & mut self ) -> Option < Token > {
142
142
let ( s, tok) = color_token ( self . 0 )
Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ fn strip_color_tokens_filter(
44
44
tera:: Value :: String ( s) => s,
45
45
_ => return Err ( tera:: Error :: msg ( "expected string" ) ) ,
46
46
} ;
47
- return Ok ( tera:: Value :: String (
47
+ Ok ( tera:: Value :: String (
48
48
COLOR_INDEX_REGEX . replace_all ( s, "" ) . to_string ( ) ,
49
- ) ) ;
49
+ ) )
50
50
}
51
51
52
52
fn hex_to_rgb_filter (
You can’t perform that action at this time.
0 commit comments