We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 140d51b commit 4f9e0fcCopy full SHA for 4f9e0fc
macros/src/lib.rs
@@ -1,10 +1,12 @@
1
+#![feature(macro_at_most_once_rep)]
2
+
3
#[macro_export]
4
macro_rules! hashmap {
5
() => {
6
HashMap::new()
7
};
8
- ( $( $key:expr => $value:expr $(,)* ), *) => {
9
+ ( $( $key:expr => $value:expr $(,)? ), *) => {
10
{
11
let mut hm = HashMap::new();
12
$(
macros/tests/macros.rs
@@ -1,3 +1,5 @@
#[macro_use]
extern crate macros;
0 commit comments