Skip to content

Commit

Permalink
stylo: Use Arc::get_mut().unwrap() instead of make_mut.
Browse files Browse the repository at this point in the history
It's infallible, so no point in using make_mut.
  • Loading branch information
emilio committed Aug 16, 2016
1 parent 010bce1 commit 6bce4c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/style/properties/gecko.mako.rs
Expand Up @@ -425,7 +425,7 @@ impl ${style_struct.gecko_struct_name} {
pub fn initial() -> Arc<Self> {
let mut result = Arc::new(${style_struct.gecko_struct_name} { gecko: unsafe { zeroed() } });
unsafe {
Gecko_Construct_${style_struct.gecko_ffi_name}(&mut Arc::make_mut(&mut result).gecko);
Gecko_Construct_${style_struct.gecko_ffi_name}(&mut Arc::get_mut(&mut result).unwrap().gecko);
}
result
}
Expand Down

0 comments on commit 6bce4c8

Please sign in to comment.