Add support for casting.
This commit is contained in:
@@ -17,7 +17,7 @@ fn main() {
|
||||
let args = CommandLineArguments::parse();
|
||||
let mut compiler = ngr::Compiler::default();
|
||||
|
||||
let output_file = args.output.unwrap_or("output.o".to_string());
|
||||
let output_file = args.output.unwrap_or_else(|| "output.o".to_string());
|
||||
|
||||
if let Some(bytes) = compiler.compile(&args.file) {
|
||||
std::fs::write(&output_file, bytes)
|
||||
|
||||
Reference in New Issue
Block a user