X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Foffers%2Fparse.rs;h=e9477086ee981358aea419416e676e4b682c1fc1;hb=0b196ebae6b9b1f861c2fc2ceddcc128b9f46f18;hp=b722499f251ad5213e1d27bbdb613da2c6aba2f7;hpb=8e2b70d91a0f7322042d1b0935527c90c59afe45;p=rust-lightning diff --git a/lightning/src/offers/parse.rs b/lightning/src/offers/parse.rs index b722499f..e9477086 100644 --- a/lightning/src/offers/parse.rs +++ b/lightning/src/offers/parse.rs @@ -116,7 +116,7 @@ impl TryFrom> for ParsedMessage { } /// Error when parsing a bech32 encoded message using [`str::parse`]. -#[derive(Debug, PartialEq)] +#[derive(Clone, Debug, PartialEq)] pub enum Bolt12ParseError { /// The bech32 encoding does not conform to the BOLT 12 requirements for continuing messages /// across multiple parts (i.e., '+' followed by whitespace). @@ -135,7 +135,7 @@ pub enum Bolt12ParseError { } /// Error when interpreting a TLV stream as a specific type. -#[derive(Debug, PartialEq)] +#[derive(Clone, Debug, PartialEq)] pub enum Bolt12SemanticError { /// The current [`std::time::SystemTime`] is past the offer or invoice's expiration. AlreadyExpired,