Skip to content

Commit

Permalink
fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
rohdealx committed Oct 29, 2023
1 parent 74dadc1 commit 96bcd7f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/csv/tokenizer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl SpecialCharacter {

impl PartialOrd<Self> for SpecialCharacter {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
self.get_position().partial_cmp(&other.get_position())
Some(self.cmp(other))
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ mod test {
use super::*;

fn trim_split(list: &str) -> Vec<&str> {
list.split("\n").map(|e| e.trim()).collect()
list.split('\n').map(|e| e.trim()).collect()
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ fn process_rule(
let mut all_okay = true;
nominal_cleaned_paths
.into_iter()
.zip(actual_cleaned_paths.into_iter())
.zip(actual_cleaned_paths)
.for_each(|(n, a)| {
let compare_result = process_file(n, a, rule);
all_okay &= !compare_result.is_error;
Expand Down

0 comments on commit 96bcd7f

Please sign in to comment.