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 @@ -107,6 +107,6 @@ impl TableCollection {
107
107
}
108
108
109
109
pub fn into_raw ( self ) -> * mut tsk_table_collection_t {
110
- unsafe { self . 0 . into_raw ( ) }
110
+ self . 0 . into_raw ( )
111
111
}
112
112
}
Original file line number Diff line number Diff line change 85
85
}
86
86
}
87
87
88
- /// # Safety
88
+ /// # Note
89
89
///
90
90
/// The returned pointer is no longer managed, meaing
91
91
/// that it is the caller's responsibility to properly
94
94
/// Failing to do so will may result in a
95
95
/// memory leak.
96
96
#[ allow( dead_code) ]
97
- pub unsafe fn into_raw ( self ) -> * mut T {
97
+ pub fn into_raw ( self ) -> * mut T {
98
98
let mut s = self ;
99
99
let rv = s. as_mut_ptr ( ) ;
100
100
s. owning = false ;
@@ -189,7 +189,7 @@ fn test_into_raw_miri() {
189
189
} )
190
190
. unwrap ( ) ;
191
191
192
- let p = unsafe { b. into_raw ( ) } ;
192
+ let p = b. into_raw ( ) ;
193
193
194
194
unsafe { libc:: free ( p as * mut libc:: c_void ) }
195
195
}
You can’t perform that action at this time.
0 commit comments