File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11//! Opaque pointers errors.
22
3- use std :: str:: Utf8Error ;
3+ use core :: str:: Utf8Error ;
44
55/// Errors that can be detected by the functions of this crate.
66///
@@ -16,8 +16,8 @@ pub enum PointerError {
1616 Utf8Error ( Utf8Error ) ,
1717}
1818
19- impl std :: fmt:: Display for PointerError {
20- fn fmt ( & self , f : & mut std :: fmt:: Formatter ) -> std :: fmt:: Result {
19+ impl core :: fmt:: Display for PointerError {
20+ fn fmt ( & self , f : & mut core :: fmt:: Formatter ) -> core :: fmt:: Result {
2121 match * self {
2222 Self :: Null => {
2323 write ! ( f, "dereference a null pointer will produce a crash" )
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ pub fn raw<T>(data: T) -> *mut T {
9595#[ cfg( any( feature = "alloc" , feature = "std" ) ) ]
9696#[ inline]
9797pub unsafe fn free < T > ( pointer : * mut T ) {
98- std :: mem:: drop ( own_back ( pointer) ) ;
98+ core :: mem:: drop ( own_back ( pointer) ) ;
9999}
100100
101101/// Opposite of [`raw<T>()`], to use Rust's ownership as usually.
You can’t perform that action at this time.
0 commit comments