Skip to content

Commit 1b07378

Browse files
committed
cargo clippy
1 parent 76aa25b commit 1b07378

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ascii/src/lib.rs

+2-2
Original file line numberDiff line numberDiff 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)]
138138
struct 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)

build.rs

+2-2
Original file line numberDiff line numberDiff 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

5252
fn hex_to_rgb_filter(

0 commit comments

Comments
 (0)