Browse Source

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

saicu 2 năm trước cách đây
mục cha
commit
6476335750
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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();
     )*}