Skip to content

Commit

Permalink
fix a few pedantic clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
mi2ebi committed Jan 11, 2025
1 parent 91ccb17 commit 03542b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use latkerlo_jvotci::*;
use latkerlo_jvotci::{get_veljvo, rafsi};
use notoize::NotoizeClient;
use regex::Regex;
use reqwest::blocking;
Expand Down Expand Up @@ -43,7 +43,7 @@ impl Entry {
}
}
fn to_datastring(&self) -> String {
let mut s = self.word.to_owned();
let mut s = self.word.clone();
// regex replacements
s = PAUSE.replace_all(&s, "_").to_string();
s = TRIM.replace_all(&s, "").to_string();
Expand Down Expand Up @@ -246,7 +246,7 @@ fn main() {
.get(entry.word.as_str())
.unwrap_or(&vec![])
.iter()
.map(|r| r.to_string())
.map(ToString::to_string)
.collect();
words.push(entry.clone());
}
Expand Down Expand Up @@ -294,7 +294,7 @@ fn main() {
println!("characters");
let chars: String = {
let mut v = data.chars().collect::<Vec<char>>();
v.sort();
v.sort_unstable();
v.dedup();
v.into_iter().collect()
};
Expand Down

0 comments on commit 03542b7

Please sign in to comment.