Skip to content

Commit

Permalink
cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
o2sh committed Dec 23, 2024
1 parent 76aa25b commit 1b07378
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ascii/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ fn get_min_start_max_end(lines: &[&str]) -> (usize, usize) {

/// Produces a series of lines which have been automatically truncated to the
/// correct width
impl<'a> Iterator for AsciiArt<'a> {
impl Iterator for AsciiArt<'_> {
type Item = String;
fn next(&mut self) -> Option<String> {
self.content
Expand Down Expand Up @@ -136,7 +136,7 @@ impl Token {
/// An iterator over tokens found within the *.ascii format.
#[derive(Clone, Debug)]
struct Tokens<'a>(&'a str);
impl<'a> Iterator for Tokens<'a> {
impl Iterator for Tokens<'_> {
type Item = Token;
fn next(&mut self) -> Option<Token> {
let (s, tok) = color_token(self.0)
Expand Down
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ fn strip_color_tokens_filter(
tera::Value::String(s) => s,
_ => return Err(tera::Error::msg("expected string")),
};
return Ok(tera::Value::String(
Ok(tera::Value::String(
COLOR_INDEX_REGEX.replace_all(s, "").to_string(),
));
))
}

fn hex_to_rgb_filter(
Expand Down

0 comments on commit 1b07378

Please sign in to comment.