|
@@ -202,7 +202,7 @@ pub struct MintBolt11Response {
|
|
}
|
|
}
|
|
|
|
|
|
/// Mint Method Settings
|
|
/// Mint Method Settings
|
|
-#[derive(Debug, Default, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
|
|
|
|
|
+#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
|
pub struct MintMethodSettings {
|
|
pub struct MintMethodSettings {
|
|
/// Payment Method e.g. bolt11
|
|
/// Payment Method e.g. bolt11
|
|
pub method: PaymentMethod,
|
|
pub method: PaymentMethod,
|
|
@@ -242,7 +242,7 @@ impl Settings {
|
|
) -> Option<MintMethodSettings> {
|
|
) -> Option<MintMethodSettings> {
|
|
for method_settings in self.methods.iter() {
|
|
for method_settings in self.methods.iter() {
|
|
if method_settings.method.eq(method) && method_settings.unit.eq(unit) {
|
|
if method_settings.method.eq(method) && method_settings.unit.eq(unit) {
|
|
- return Some(method_settings.clone());
|
|
|
|
|
|
+ return Some(*method_settings);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|