mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-26 00:00:03 +03:00
deduplicate
This commit is contained in:
parent
3f114cc069
commit
4d7ce6e571
|
@ -22,8 +22,8 @@ pub fn verify(start_at: Option<&str>) -> Result<(), ()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
match i.get("mode").unwrap().as_str().unwrap() {
|
match i.get("mode").unwrap().as_str().unwrap() {
|
||||||
"test" => test(i.get("path").unwrap().as_str().unwrap())?,
|
"test" => test(path)?,
|
||||||
"compile" => compile_only(i.get("path").unwrap().as_str().unwrap())?,
|
"compile" => compile_only(path)?,
|
||||||
_ => (),
|
_ => (),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue