mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 12:43:08 +00:00
to_owned!: allow optional comma at the end (#584)
This commit is contained in:
parent
62e067ef5d
commit
6476335750
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
)*}
|
)*}
|
||||||
|
|
Loading…
Reference in a new issue