Преглед изворни кода

to_owned!: allow optional comma at the end (#584)

saicu пре 2 година
родитељ
комит
6476335750
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/core/src/lib.rs

+ 1 - 1
packages/core/src/lib.rs

@@ -134,7 +134,7 @@ pub(crate) mod unsafe_utils {
 /// }
 /// ```
 macro_rules! to_owned {
-    ($($es:ident),+) => {$(
+    ($($es:ident),+$(,)?) => {$(
         #[allow(unused_mut)]
         let mut $es = $es.to_owned();
     )*}