File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 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) {
9797
9898/// Produces a series of lines which have been automatically truncated to the
9999/// correct width
100- impl < ' a > Iterator for AsciiArt < ' a > {
100+ impl Iterator for AsciiArt < ' _ > {
101101 type Item = String ;
102102 fn next ( & mut self ) -> Option < String > {
103103 self . content
@@ -136,7 +136,7 @@ impl Token {
136136/// An iterator over tokens found within the *.ascii format.
137137#[ derive( Clone , Debug ) ]
138138struct Tokens < ' a > ( & ' a str ) ;
139- impl < ' a > Iterator for Tokens < ' a > {
139+ impl Iterator for Tokens < ' _ > {
140140 type Item = Token ;
141141 fn next ( & mut self ) -> Option < Token > {
142142 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(
4444 tera:: Value :: String ( s) => s,
4545 _ => return Err ( tera:: Error :: msg ( "expected string" ) ) ,
4646 } ;
47- return Ok ( tera:: Value :: String (
47+ Ok ( tera:: Value :: String (
4848 COLOR_INDEX_REGEX . replace_all ( s, "" ) . to_string ( ) ,
49- ) ) ;
49+ ) )
5050}
5151
5252fn hex_to_rgb_filter (
You can’t perform that action at this time.
0 commit comments