mirror of
https://github.com/aljazceru/cdk.git
synced 2026-02-09 15:16:00 +01:00
Update crates/cashu/src/nuts/nut18.rs
Co-authored-by: ok300 <106775972+ok300@users.noreply.github.com>
This commit is contained in:
@@ -224,11 +224,7 @@ impl PaymentRequestBuilder {
|
||||
|
||||
/// Add a mint URL
|
||||
pub fn add_mint(mut self, mint_url: MintUrl) -> Self {
|
||||
if let Some(ref mut mints) = self.mints {
|
||||
mints.push(mint_url);
|
||||
} else {
|
||||
self.mints = Some(vec![mint_url]);
|
||||
}
|
||||
self.mints.get_or_insert_with(Vec::new).push(mint_url);
|
||||
self
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user