Use new Rust write behavior

This commit is contained in:
Rerumu
2022-04-26 02:05:44 -04:00
parent 36e9ff3c86
commit 12e2799914
3 changed files with 97 additions and 117 deletions
+3 -3
View File
@@ -31,7 +31,7 @@ fn do_translate(name: &str, file: &str) {
match name.to_lowercase().as_str() {
"luajit" => run_translator::<LuaJIT>(wasm),
"luau" => run_translator::<Luau>(wasm),
_ => panic!("Bad language: {}", name),
_ => panic!("Bad language: {name}"),
}
}
@@ -39,7 +39,7 @@ fn do_runtime(name: &str) {
match name.to_lowercase().as_str() {
"luajit" => run_runtime::<LuaJIT>(),
"luau" => run_runtime::<Luau>(),
_ => panic!("Bad runtime: {}", name),
_ => panic!("Bad runtime: {name}"),
}
}
@@ -66,7 +66,7 @@ fn main() {
do_translate(&lang, &file);
}
bad => {
eprintln!("Bad action `{}`; try `help`", bad);
eprintln!("Bad action `{bad}`; try `help`");
}
}
}