mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 05:52:23 -05:00
chore: Updated source to follow clippy suggestions.
This commit is contained in:
parent
b4a4138559
commit
2e84f34cf3
2 changed files with 2 additions and 2 deletions
|
@ -142,7 +142,7 @@ fn main() {
|
||||||
let fname = format!("{}", e.path.display());
|
let fname = format!("{}", e.path.display());
|
||||||
let filter_cond = filters
|
let filter_cond = filters
|
||||||
.split(',')
|
.split(',')
|
||||||
.filter(|f| f.trim().len() > 0)
|
.filter(|f| !f.trim().is_empty())
|
||||||
.any(|f| e.name.contains(&f) || fname.contains(&f));
|
.any(|f| e.name.contains(&f) || fname.contains(&f));
|
||||||
let status = if e.looks_done() { "Done" } else { "Pending" };
|
let status = if e.looks_done() { "Done" } else { "Pending" };
|
||||||
let solve_cond = {
|
let solve_cond = {
|
||||||
|
|
|
@ -131,7 +131,7 @@ fn all_exercises_require_confirmation() {
|
||||||
file.read_to_string(&mut s).unwrap();
|
file.read_to_string(&mut s).unwrap();
|
||||||
s
|
s
|
||||||
};
|
};
|
||||||
source.matches("// I AM NOT DONE").next().expect(&format!(
|
source.matches("// I AM NOT DONE").next().unwrap_or_else(|| panic!(
|
||||||
"There should be an `I AM NOT DONE` annotation in {:?}",
|
"There should be an `I AM NOT DONE` annotation in {:?}",
|
||||||
path
|
path
|
||||||
));
|
));
|
||||||
|
|
Loading…
Reference in a new issue