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

This commit is contained in:
saicu authored and GitHub committed 2022-10-08 16:23:26 -07:00
1 parent 62e067ef5d
commit 6476335750
1 file changed
+1 -1
+1 -1
View File
@@ -134,7 +134,7 @@ pub(crate) mod unsafe_utils {
/// } /// }
/// ``` /// ```
macro_rules! to_owned { macro_rules! to_owned {
($($es:ident),+) => {$( ($($es:ident),+$(,)?) => {$(
#[allow(unused_mut)] #[allow(unused_mut)]
let mut $es = $es.to_owned(); let mut $es = $es.to_owned();
)*} )*}