Explicitly refer to `format!()` with an `alloc` prefix for no-std
[ldk-c-bindings] / c-bindings-gen / src / types.rs
index 88d66403931c34b2792e932309e2dfa08f09b226..aebeb487ece66605a3770677b9d386041bc29a13 100644 (file)
@@ -1133,7 +1133,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
                        "std::time::Duration"|"core::time::Duration" => Some(""),
                        "std::time::SystemTime" => Some(""),
                        "std::io::Error" if !is_ref => Some("crate::c_types::IOError::from_rust("),
-                       "core::fmt::Arguments" => Some("format!(\"{}\", "),
+                       "core::fmt::Arguments" => Some("alloc::format!(\"{}\", "),
 
                        "core::convert::Infallible" => Some("panic!(\"Cannot construct an Infallible: "),