mirror of
https://github.com/tiffany352/rink-rs
synced 2024-11-10 05:34:14 +00:00
Manually remove trailing semicolons; Update edition
This commit is contained in:
parent
0d10f2d0e6
commit
3a2aa4c44d
2 changed files with 3 additions and 2 deletions
|
@ -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"]
|
||||
|
|
|
@ -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 {}: \
|
||||
|
|
Loading…
Reference in a new issue