do_create_table,
)}
-//#[throws(E)]
-fn do_create_table(_sc: &Subcommand, ma: MainOpts, args: Vec<String>)
- -> Result<(),E>
-{
+#[throws(E)]
+fn do_create_table(_sc: &Subcommand, ma: MainOpts, args: Vec<String>) {
#[derive(Default,Debug)]
struct Args {
name: String,
Ok(())
}, None);
-let specf = &args.file;
- let spec = {//(|f|{
-
- let mut f = File::open(specf).context("open")?;
+ let spec = (||{
+ let mut f = File::open(&args.file).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")?;
<Result<_,AE>>::Ok(spec)
-// })(&args.file).context("game spec toml").context(&args.file)?;
- };
+ })().context("game spec toml").context(&args.file)?;
let chan = connect(&ma)?;