Skip to content

Commit

Permalink
fix for rust issue #79813
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur MATTHYS authored and Arthur MATTHYS committed Feb 26, 2024
1 parent 3c47c91 commit fcec2ac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ macro_rules! vec_or_none {
.collect::<Vec<_>>()
}
})
.unwrap_or(Vec::new());
.unwrap_or(Vec::new())
};
// for generating currencies structs, convert the currencies json
// object to a valid rust struct
Expand All @@ -34,7 +34,7 @@ macro_rules! vec_or_none {
.collect::<Vec<_>>()
}
})
.unwrap_or(Vec::new());
.unwrap_or(Vec::new())
};
// for generating language structs, convert the language json
// object to a valid rust struct
Expand All @@ -51,7 +51,7 @@ macro_rules! vec_or_none {
.collect::<Vec<_>>()
}
})
.unwrap_or(Vec::new());
.unwrap_or(Vec::new())
};
// for generating timezone structs, convert the timezone json
// object to a valid rust struct
Expand Down Expand Up @@ -81,15 +81,15 @@ macro_rules! value_or_none {
$country_data
.get($key)
.map(|value| value.to_string())
.unwrap_or(String::from("None"));
.unwrap_or(String::from("None"))
};
}

// parse the token stream from the built static map initilization
#[macro_export]
macro_rules! tokens {
( $variable : expr ) => {
TokenStream::from_str(&$variable.build().to_string())?;
TokenStream::from_str(&$variable.build().to_string())?
};
}

Expand Down

0 comments on commit fcec2ac

Please sign in to comment.