diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2022-04-27 14:00:45 -0700 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2022-04-27 14:01:04 -0700 |
| commit | 42d96bb2f68c7cdc7ac67708daca0bfca37812da (patch) | |
| tree | 31e45cae146f18749e4b0ca4732fe97969f971e9 | |
| parent | 69a5d2481e856a5a18885390b8cf6950b9ff8dd3 (diff) | |
| download | rust-42d96bb2f68c7cdc7ac67708daca0bfca37812da.tar.gz rust-42d96bb2f68c7cdc7ac67708daca0bfca37812da.zip | |
Remove use of reverted std::ffi::c_char
| -rw-r--r-- | library/alloc/tests/c_str.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/alloc/tests/c_str.rs b/library/alloc/tests/c_str.rs index 8fbb10e1d5c..4a581793956 100644 --- a/library/alloc/tests/c_str.rs +++ b/library/alloc/tests/c_str.rs @@ -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() { |
