From fcec2ac87526f10ee82ac7124baf88bcb96a4230 Mon Sep 17 00:00:00 2001 From: Arthur MATTHYS Date: Mon, 26 Feb 2024 15:03:53 +0100 Subject: [PATCH] fix for rust issue #79813 --- build/macros.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build/macros.rs b/build/macros.rs index c9e6f0f..37ad947 100644 --- a/build/macros.rs +++ b/build/macros.rs @@ -17,7 +17,7 @@ macro_rules! vec_or_none { .collect::>() } }) - .unwrap_or(Vec::new()); + .unwrap_or(Vec::new()) }; // for generating currencies structs, convert the currencies json // object to a valid rust struct @@ -34,7 +34,7 @@ macro_rules! vec_or_none { .collect::>() } }) - .unwrap_or(Vec::new()); + .unwrap_or(Vec::new()) }; // for generating language structs, convert the language json // object to a valid rust struct @@ -51,7 +51,7 @@ macro_rules! vec_or_none { .collect::>() } }) - .unwrap_or(Vec::new()); + .unwrap_or(Vec::new()) }; // for generating timezone structs, convert the timezone json // object to a valid rust struct @@ -81,7 +81,7 @@ macro_rules! value_or_none { $country_data .get($key) .map(|value| value.to_string()) - .unwrap_or(String::from("None")); + .unwrap_or(String::from("None")) }; } @@ -89,7 +89,7 @@ macro_rules! value_or_none { #[macro_export] macro_rules! tokens { ( $variable : expr ) => { - TokenStream::from_str(&$variable.build().to_string())?; + TokenStream::from_str(&$variable.build().to_string())? }; }