to_owned!: allow optional comma at the end (#584)
This commit is contained in:
1 parent
62e067ef5d
commit
6476335750
1 file changed
+1
-1
@@ -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();
|
||||
)*}
|
||||
|
||||
Reference in new issue
Block a user