Commit 8db31e8d authored by Jeff Smits's avatar Jeff Smits

cargo fmt

parent 84703e52
......@@ -283,7 +283,11 @@ fn gen_strc_tests() {
let path = entry.unwrap().path();
if path.is_file() && Some("ctree".as_ref()) == path.extension() {
// TODO: sanatise file_stem so it's likely to be a valid test name?
let test_name = path.file_stem().unwrap().to_str().unwrap().replace('-', "_");
let test_name = path.file_stem()
.unwrap()
.to_str()
.unwrap()
.replace('-', "_");
let path_string = path.to_str().unwrap();
write!(file,
r#"
......@@ -305,7 +309,10 @@ fn {}() {{
let mut result = String::new();
assert!(term.to_ascii(&mut result).is_ok());
}}
"#, test_name, path_string).unwrap();
"#,
test_name,
path_string)
.unwrap();
}
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment