File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -213,15 +213,17 @@ impl Info {
213
213
assert_eq ! ( false , ptr. is_null( ) ) ;
214
214
// Note, yes, this should be weak; the ‘free’ function for a format info object free’s its
215
215
// own proplist!
216
- unsafe { Self { ptr : ptr, properties : Proplist :: from_raw_weak ( ( * ptr) . list ) , weak : false } }
216
+ let pl = Proplist :: from_raw_weak ( unsafe { ( * ptr) . list } ) ;
217
+ Self { ptr : ptr, properties : pl, weak : false }
217
218
}
218
219
219
220
/// Creates a new `Info` from an existing [`InfoInternal`] pointer.
220
221
///
221
222
/// This is the ‘weak’ version, which avoids destroying the internal object when dropped.
222
223
pub ( crate ) fn from_raw_weak ( ptr : * mut InfoInternal ) -> Self {
223
224
assert_eq ! ( false , ptr. is_null( ) ) ;
224
- unsafe { Self { ptr : ptr, properties : Proplist :: from_raw_weak ( ( * ptr) . list ) , weak : true } }
225
+ let pl = Proplist :: from_raw_weak ( unsafe { ( * ptr) . list } ) ;
226
+ Self { ptr : ptr, properties : pl, weak : true }
225
227
}
226
228
227
229
/// Returns a new `Info` struct representing the same format.
You can’t perform that action at this time.
0 commit comments