diff options
author | Jovansonlee Cesar <ivanceras@gmail.com> | 2019-09-18 20:02:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-18 20:02:49 +0800 |
commit | 4ed947ab06af1f63feca6a04b287488355e18403 (patch) | |
tree | 7cc2c9603509ff2be459bb8aee2d91bb95b9a676 | |
parent | c3e84c87094550d8cdc6fc48b40a00712b2951cb (diff) | |
parent | 1e6c03b7364c5a2394628632567508cce8b316f6 (diff) |
Merge pull request #43 from corpix/feature/dyn
fixed dynamically dispatched traits type declaration
-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(); |