mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-26 07:20:30 +00:00
test: skip mod.rs files when checking for annotations
This commit is contained in:
parent
cf9f382873
commit
0b7f3fe37a
1 changed files with 3 additions and 0 deletions
|
@ -125,6 +125,9 @@ fn get_hint_for_single_test() {
|
||||||
fn all_exercises_require_confirmation() {
|
fn all_exercises_require_confirmation() {
|
||||||
for exercise in glob("exercises/**/*.rs").unwrap() {
|
for exercise in glob("exercises/**/*.rs").unwrap() {
|
||||||
let path = exercise.unwrap();
|
let path = exercise.unwrap();
|
||||||
|
if path.file_name().unwrap() == "mod.rs" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
let source = {
|
let source = {
|
||||||
let mut file = File::open(&path).unwrap();
|
let mut file = File::open(&path).unwrap();
|
||||||
let mut s = String::new();
|
let mut s = String::new();
|
||||||
|
|
Loading…
Reference in a new issue