From: Ian Jackson Date: Thu, 13 Aug 2020 18:56:27 +0000 (+0100) Subject: make compile X-Git-Tag: otter-0.2.0~1128 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=8efdfabc504c9a60855632e6fe5db8f7259d2482;p=otter.git make compile --- 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(()) }