X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=lightning%2Fsrc%2Futil%2Ferrors.rs;h=b47e134efab29524c220c7781bb2d610d72dbf2e;hb=0ea7dd8bfccf0369af8d8e7011997ced6df06c7a;hp=a2a45a7b3afc66372ff3e41e6655d9a199b67099;hpb=8fb4a3ddc2b1b70ac7032a5904ad79114a77b8dc;p=rust-lightning diff --git a/lightning/src/util/errors.rs b/lightning/src/util/errors.rs index a2a45a7b..b47e134e 100644 --- a/lightning/src/util/errors.rs +++ b/lightning/src/util/errors.rs @@ -9,10 +9,11 @@ //! Error types live here. -use std::fmt; +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.