mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-02 00:13:30 +02:00
chore: Updated source to follow clippy suggestions.
This commit is contained in:
@@ -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
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user