Support building dependent crates with `no-std`
[ldk-c-bindings] / c-bindings-gen / src / types.rs
index 0a6bce453e5628a4847c890e44c9ca0c49e5ac16..c3f5ad0e237b8075c6577eb9dad5920dd89f0df4 100644 (file)
@@ -1269,7 +1269,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
        /// TODO: We should never need to use this!
        fn real_rust_type_mapping<'equiv>(&self, thing: &'equiv str) -> &'equiv str {
                match thing {
-                       "lightning::io::Read" => "std::io::Read",
+                       "lightning::io::Read" => "crate::c_types::io::Read",
                        _ => thing,
                }
        }