Explorar o código

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

saicu %!s(int64=2) %!d(string=hai) anos
pai
achega
6476335750
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();
     )*}