Skip to content

Commit b935e32

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

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
@@ -349,7 +349,7 @@ void RustCodeContainer::produceClass()
349349
tab(n + 1, *fOut);
350350
*fOut << "mod ffi {";
351351
tab(n + 1, *fOut);
352-
*fOut << "use std::os::raw::c_double;";
352+
*fOut << "use core::ffi::c_double;";
353353
tab(n + 1, *fOut);
354354
*fOut << "// Conditionally compile the link attribute only on non-Windows platforms";
355355
tab(n + 1, *fOut);

0 commit comments

Comments
 (0)