We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 548bbc8 commit ea8e6c9Copy full SHA for ea8e6c9
codegen/main.rs
@@ -19,7 +19,7 @@ fn main() {
19
pub fn get_writer(mut output_dir: Path, filename: &str) -> Box<Writer + 'static> {
20
output_dir.push(filename);
21
match File::open_mode(&output_dir, Truncate, Write) {
22
- Ok(writer) => box writer as Box<Writer>,
+ Ok(writer) => Box::new(writer),
23
Err(e) => panic!("Unable to write file: {}", e.desc),
24
}
25
0 commit comments