1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-11-27 22:38:18 +02:00

chore: Updated source to follow clippy suggestions.

This commit is contained in:
apogeeoak
2021-02-09 18:21:18 -05:00
parent b4a4138559
commit 2e84f34cf3
2 changed files with 2 additions and 2 deletions

View File

@@ -131,7 +131,7 @@ fn all_exercises_require_confirmation() {
file.read_to_string(&mut s).unwrap();
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 {:?}",
path
));