Merge pull request #998 from TheBlueMatt/2021-07-fix-chan-reserve-msat-sat
[rust-lightning] / lightning / src / util / errors.rs
index a2a45a7b3afc66372ff3e41e6655d9a199b67099..ddcc693b3398e969b364c89b4ee4a73684d33153 100644 (file)
@@ -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.