rustfmt
This commit is contained in:
parent
639fa99abc
commit
2b3e2ce34c
@ -29,10 +29,20 @@ macro_rules! max_args {
|
||||
($args:ident, $count:literal) => {
|
||||
if $args.len() > $count {
|
||||
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 {
|
||||
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"
|
||||
);
|
||||
test!(
|
||||
removes_null_value,
|
||||
"a {\n color: null;\n}\n",
|
||||
""
|
||||
);
|
||||
test!(removes_null_value, "a {\n color: null;\n}\n", "");
|
||||
|
Loading…
x
Reference in New Issue
Block a user