We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 98e5e88 + 2e84f34 commit ab57c26Copy full SHA for ab57c26
2 files changed
src/main.rs
@@ -142,7 +142,7 @@ fn main() {
142
let fname = format!("{}", e.path.display());
143
let filter_cond = filters
144
.split(',')
145
- .filter(|f| f.trim().len() > 0)
+ .filter(|f| !f.trim().is_empty())
146
.any(|f| e.name.contains(&f) || fname.contains(&f));
147
let status = if e.looks_done() { "Done" } else { "Pending" };
148
let solve_cond = {
tests/integration_tests.rs
@@ -131,7 +131,7 @@ fn all_exercises_require_confirmation() {
131
file.read_to_string(&mut s).unwrap();
132
s
133
};
134
- source.matches("// I AM NOT DONE").next().expect(&format!(
+ source.matches("// I AM NOT DONE").next().unwrap_or_else(|| panic!(
135
"There should be an `I AM NOT DONE` annotation in {:?}",
136
path
137
));
0 commit comments