Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for rust issue #79813 #2

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading