Map core::convert::Infallible to a similar manually-defined struct
[ldk-c-bindings] / c-bindings-gen / src / main.rs
index 1572b313582db2e2275b23b99ca3ba77a900b3cb..38704b2c8d99220c42b0622b5326e244f53b84e5 100644 (file)
@@ -33,7 +33,7 @@ mod blocks;
 use types::*;
 use blocks::*;
 
-const DEFAULT_IMPORTS: &'static str = "\nuse std::str::FromStr;\nuse std::ffi::c_void;\nuse bitcoin::hashes::Hash;\nuse crate::c_types::*;\n";
+const DEFAULT_IMPORTS: &'static str = "\nuse std::str::FromStr;\nuse std::ffi::c_void;\nuse core::convert::Infallible;\nuse bitcoin::hashes::Hash;\nuse crate::c_types::*;\n";
 
 // *************************************
 // *** Manually-expanded conversions ***