rustfmt
This commit is contained in:
parent
639fa99abc
commit
2b3e2ce34c
@ -29,9 +29,19 @@ macro_rules! max_args {
|
|||||||
($args:ident, $count:literal) => {
|
($args:ident, $count:literal) => {
|
||||||
if $args.len() > $count {
|
if $args.len() > $count {
|
||||||
if $count > 1 {
|
if $count > 1 {
|
||||||
return Err(format!("Only {} arguments allowed, but {} were passed.", $count, $args.len()).into());
|
return Err(format!(
|
||||||
|
"Only {} arguments allowed, but {} were passed.",
|
||||||
|
$count,
|
||||||
|
$args.len()
|
||||||
|
)
|
||||||
|
.into());
|
||||||
} else {
|
} else {
|
||||||
return Err(format!("Only {} argument allowed, but {} were passed.", $count, $args.len()).into());
|
return Err(format!(
|
||||||
|
"Only {} argument allowed, but {} were passed.",
|
||||||
|
$count,
|
||||||
|
$args.len()
|
||||||
|
)
|
||||||
|
.into());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -130,8 +130,4 @@ test!(
|
|||||||
"a {\n color:red\n}\n",
|
"a {\n color:red\n}\n",
|
||||||
"a {\n color: red;\n}\n"
|
"a {\n color: red;\n}\n"
|
||||||
);
|
);
|
||||||
test!(
|
test!(removes_null_value, "a {\n color: null;\n}\n", "");
|
||||||
removes_null_value,
|
|
||||||
"a {\n color: null;\n}\n",
|
|
||||||
""
|
|
||||||
);
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user