projects
/
ldk-c-bindings
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #54 from TheBlueMatt/main
[ldk-c-bindings]
/
lightning-c-bindings
/
src
/
lightning
/
util
/
errors.rs
diff --git
a/lightning-c-bindings/src/lightning/util/errors.rs
b/lightning-c-bindings/src/lightning/util/errors.rs
index 4764a70c106b9d34f43e2e2e0a8502dc347fcbbc..a3933b9b5591e7ed3412d6f71cd62134afd135c3 100644
(file)
--- a/
lightning-c-bindings/src/lightning/util/errors.rs
+++ b/
lightning-c-bindings/src/lightning/util/errors.rs
@@
-8,10
+8,13
@@
//! Error types live here.
//! Error types live here.
-use std::str::FromStr;
-use std::ffi::c_void;
+use alloc::str::FromStr;
+use core::ffi::c_void;
+use core::convert::Infallible;
use bitcoin::hashes::Hash;
use crate::c_types::*;
use bitcoin::hashes::Hash;
use crate::c_types::*;
+#[cfg(feature="no-std")]
+use alloc::{vec::Vec, boxed::Box};
/// Indicates an error on the client's part (usually some variant of attempting to use too-low or
/// too-high values)
/// Indicates an error on the client's part (usually some variant of attempting to use too-low or
/// too-high values)