From 8efdfabc504c9a60855632e6fe5db8f7259d2482 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 13 Aug 2020 19:56:27 +0100 Subject: [PATCH] make compile --- src/bin/otter.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/otter.rs b/src/bin/otter.rs index 72774064..91adcc10 100644 --- a/src/bin/otter.rs +++ b/src/bin/otter.rs @@ -219,7 +219,7 @@ fn do_create_table(_sc: &Subcommand, ma: MainOpts, args: Vec) let specf = &args.file; let spec = {//(|f|{ - let mut f = File::open(f).context("open")?; + let mut f = File::open(specf).context("open")?; let mut buf = String::new(); f.read_to_string(&mut buf).context("read")?; let spec : TableSpec = toml::de::from_str(&buf).context("parse")?; @@ -241,4 +241,5 @@ let specf = &args.file; ]*/ eprintln!("CREATE-TABLE {:?} {:?}", &ma, &args); + Ok(()) } -- 2.30.2