Manually remove trailing semicolons; Update edition

This commit is contained in:
Alex Alemi 2020-04-22 22:04:18 -04:00
parent 0d10f2d0e6
commit 3a2aa4c44d
2 changed files with 3 additions and 2 deletions

View file

@ -8,6 +8,7 @@ repository = "https://github.com/tiffany352/rink-rs"
readme = "README.md"
license = "MPL-2.0"
keywords = ["unit", "math", "conversion", "cli", "tool"]
edition = "2018"
[features]
default = ["linefeed", "chrono-humanize", "gpl", "currency"]

View file

@ -146,7 +146,7 @@ impl Context {
(fn $fname:ident($($name:ident : $ty:ident),*) $block:block) => {{
let mut iter = args.iter();
let mut count = 0;
$( count += 1; let _ = stringify!($name); )*;
$( count += 1; let _ = stringify!($name); )*
$(
let $name = match iter.next() {
Some(&Value::$ty(ref v)) => v,
@ -162,7 +162,7 @@ impl Context {
stringify!($fname), count, args.len()
)))
};
)*;
)*
if iter.next().is_some() {
return Err(QueryError::Generic(format!(
"Argument number mismatch for {}: \