make `vec![,]` uncompilable

Fix regression introduced in commit #3ae2d21
This commit is contained in:
Waffle 2020-04-14 10:27:55 +03:00
parent 3ae2d21c12
commit 2c23bd4914
1 changed files with 2 additions and 2 deletions

View File

@ -42,8 +42,8 @@ macro_rules! vec {
($elem:expr; $n:expr) => (
$crate::vec::from_elem($elem, $n)
);
($($x:expr),* $(,)?) => (
<[_]>::into_vec(box [$($x),*])
($($x:expr),+ $(,)?) => (
<[_]>::into_vec(box [$($x),+])
);
}