diff --git a/fedimint-nwc/src/database/invoice.rs b/fedimint-nwc/src/database/invoice.rs index 4074372..65e28cc 100644 --- a/fedimint-nwc/src/database/invoice.rs +++ b/fedimint-nwc/src/database/invoice.rs @@ -54,8 +54,14 @@ impl From<&Bolt11Invoice> for Invoice { } impl Value for Invoice { - type SelfType<'a> = Self where Self: 'a; - type AsBytes<'a> = Vec where Self: 'a; + type SelfType<'a> + = Self + where + Self: 'a; + type AsBytes<'a> + = Vec + where + Self: 'a; fn as_bytes<'a, 'b: 'a>(value: &'a Self::SelfType<'b>) -> Vec { // nosemgrep: use-of-unwrap diff --git a/fedimint-nwc/src/database/payment.rs b/fedimint-nwc/src/database/payment.rs index 7bd4652..ff39c9c 100644 --- a/fedimint-nwc/src/database/payment.rs +++ b/fedimint-nwc/src/database/payment.rs @@ -22,8 +22,14 @@ impl Payment { } impl Value for Payment { - type SelfType<'a> = Self where Self: 'a; - type AsBytes<'a> = Vec where Self: 'a; + type SelfType<'a> + = Self + where + Self: 'a; + type AsBytes<'a> + = Vec + where + Self: 'a; fn as_bytes<'a, 'b: 'a>(value: &'a Self::SelfType<'b>) -> Vec { // nosemgrep: use-of-unwrap diff --git a/fedimint-nwc/src/services/nostr.rs b/fedimint-nwc/src/services/nostr.rs index d924c38..740fbf0 100644 --- a/fedimint-nwc/src/services/nostr.rs +++ b/fedimint-nwc/src/services/nostr.rs @@ -51,7 +51,7 @@ impl NostrService { .map(|line| line.to_string()) .collect::>(); - let client = Client::new(&Keys::new(server_key.into())); + let client = Client::new(Keys::new(server_key.into())); let service = Self { client, server_key,