]> git.lizzy.rs Git - rust.git/commitdiff
Remove use of reverted std::ffi::c_char
authorJosh Triplett <josh@joshtriplett.org>
Wed, 27 Apr 2022 21:00:45 +0000 (14:00 -0700)
committerJosh Triplett <josh@joshtriplett.org>
Wed, 27 Apr 2022 21:01:04 +0000 (14:01 -0700)
library/alloc/tests/c_str.rs

index 8fbb10e1d5cb6745e0d4f986782e3d653104e155..4a5817939567b8690b3841c9d611999bda8571d3 100644 (file)
@@ -1,5 +1,6 @@
 use std::borrow::Cow::{Borrowed, Owned};
-use std::ffi::{c_char, CStr};
+use std::ffi::CStr;
+use std::os::raw::c_char;
 
 #[test]
 fn to_str() {