diff options
-rw-r--r-- | svgbob_cli/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svgbob_cli/src/main.rs b/svgbob_cli/src/main.rs index 004bb03..4b7b670 100644 --- a/svgbob_cli/src/main.rs +++ b/svgbob_cli/src/main.rs @@ -163,7 +163,7 @@ where // Batch convert files to svg // use svgbob build -i inputdir/*.bob -o outdir/ -fn build(args: &ArgMatches) -> Result<(), Box<Error>> { +fn build(args: &ArgMatches) -> Result<(), Box<dyn Error>> { let files_pattern = args.value_of("input").unwrap_or("*.bob"); let outdir = args.value_of("outdir").unwrap_or(""); let input_path = Path::new(files_pattern); @@ -224,7 +224,7 @@ fn build(args: &ArgMatches) -> Result<(), Box<Error>> { Ok(()) } -fn convert_file(input: PathBuf, output: PathBuf) -> Result<(), Box<Error>> { +fn convert_file(input: PathBuf, output: PathBuf) -> Result<(), Box<dyn Error>> { let mut bob = String::new(); let mut f = try!(File::open(&input)); f.read_to_string(&mut bob).unwrap(); |