Skip to content

Commit b149401

Browse files
crop2000sletz
authored andcommitted
rust change import of c_float to use core (no-std)
1 parent 72f5e7f commit b149401

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/generator/rust/rust_code_container.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ void RustCodeContainer::produceClass()
297297
tab(n, *fOut);
298298
*fOut << "mod ffi {";
299299
tab(n + 1, *fOut);
300-
*fOut << "use std::os::raw::c_float;";
300+
*fOut << "use core::ffi::c_float;";
301301
tab(n + 1, *fOut);
302302
*fOut << "// Conditionally compile the link attribute only on non-Windows platforms";
303303
tab(n + 1, *fOut);

0 commit comments

Comments
 (0)