浏览代码

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();
     )*}