Skip to content

Commit ab57c26

Browse files
author
marisa
authored
Merge pull request #644 from apogeeoak/clippy
Updated source to follow clippy suggestions.
2 parents 98e5e88 + 2e84f34 commit ab57c26

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ fn main() {
142142
let fname = format!("{}", e.path.display());
143143
let filter_cond = filters
144144
.split(',')
145-
.filter(|f| f.trim().len() > 0)
145+
.filter(|f| !f.trim().is_empty())
146146
.any(|f| e.name.contains(&f) || fname.contains(&f));
147147
let status = if e.looks_done() { "Done" } else { "Pending" };
148148
let solve_cond = {

tests/integration_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ fn all_exercises_require_confirmation() {
131131
file.read_to_string(&mut s).unwrap();
132132
s
133133
};
134-
source.matches("// I AM NOT DONE").next().expect(&format!(
134+
source.matches("// I AM NOT DONE").next().unwrap_or_else(|| panic!(
135135
"There should be an `I AM NOT DONE` annotation in {:?}",
136136
path
137137
));

0 commit comments

Comments
 (0)