X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Futil%2Ferrors.rs;h=ddcc693b3398e969b364c89b4ee4a73684d33153;hb=d37b1dd6730535cebe0ce5d0434046848b244211;hp=a2a45a7b3afc66372ff3e41e6655d9a199b67099;hpb=8fb4a3ddc2b1b70ac7032a5904ad79114a77b8dc;p=rust-lightning diff --git a/lightning/src/util/errors.rs b/lightning/src/util/errors.rs index a2a45a7b..ddcc693b 100644 --- a/lightning/src/util/errors.rs +++ b/lightning/src/util/errors.rs @@ -9,10 +9,12 @@ //! Error types live here. -use std::fmt; +use alloc::string::String; +use core::fmt; /// Indicates an error on the client's part (usually some variant of attempting to use too-low or /// too-high values) +#[derive(Clone)] pub enum APIError { /// Indicates the API was wholly misused (see err for more). Cases where these can be returned /// are documented, but generally indicates some precondition of a function was violated.