From 64763357504e8618605f6183437a4adef47175fe Mon Sep 17 00:00:00 2001 From: saicu <39388914+saicu@users.noreply.github.com> Date: Sun, 9 Oct 2022 01:23:26 +0200 Subject: [PATCH] to_owned!: allow optional comma at the end (#584) --- packages/core/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/lib.rs b/packages/core/src/lib.rs index 4334a3441..8161620e9 100644 --- a/packages/core/src/lib.rs +++ b/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(); )*}