Skip to content

Commit

Permalink
chore: update flakebox
Browse files Browse the repository at this point in the history
  • Loading branch information
dpc committed Oct 7, 2024
1 parent b216553 commit 6a57b4e
Show file tree
Hide file tree
Showing 12 changed files with 352 additions and 261 deletions.
2 changes: 1 addition & 1 deletion .config/flakebox/id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9501c5c269226a4ea1bca7043d0b0cbe88e451514e3d43c089f74880a8a482980b414fb9d8f933589b2a1598f79fbc5646cca86da35e49ec694f6070a7ff53e5
6cc53c747a56bca36668bb5f215a632e03f97014ccea2c382c18a47ee7d0f802b281f01ea2fd16a8546b95c0d56bde4919ced91952b4a48ae16eada7bccd2235
10 changes: 8 additions & 2 deletions fedimint-nwc/src/database/invoice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,14 @@ impl From<&Bolt11Invoice> for Invoice {
}

impl Value for Invoice {
type SelfType<'a> = Self where Self: 'a;
type AsBytes<'a> = Vec<u8> where Self: 'a;
type SelfType<'a>
= Self
where
Self: 'a;
type AsBytes<'a>
= Vec<u8>
where
Self: 'a;

fn as_bytes<'a, 'b: 'a>(value: &'a Self::SelfType<'b>) -> Vec<u8> {
// nosemgrep: use-of-unwrap
Expand Down
10 changes: 8 additions & 2 deletions fedimint-nwc/src/database/payment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@ impl Payment {
}

impl Value for Payment {
type SelfType<'a> = Self where Self: 'a;
type AsBytes<'a> = Vec<u8> where Self: 'a;
type SelfType<'a>
= Self
where
Self: 'a;
type AsBytes<'a>
= Vec<u8>
where
Self: 'a;

fn as_bytes<'a, 'b: 'a>(value: &'a Self::SelfType<'b>) -> Vec<u8> {
// nosemgrep: use-of-unwrap
Expand Down
Loading

0 comments on commit 6a57b4e

Please sign in to comment.