mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix tidy issues.
This commit is contained in:
parent
84ca681a78
commit
4c97f68f3e
3 changed files with 13 additions and 15 deletions
|
@ -22,7 +22,7 @@ impl OpaqueElement {
|
|||
/// Creates a new OpaqueElement from an arbitrarily-typed pointer.
|
||||
pub fn new<T>(ptr: &T) -> Self {
|
||||
unsafe {
|
||||
OpaqueElement(NonNull::new_unchecked(ptr as *const T as *const () as *mut ()))
|
||||
OpaqueElement(NonNull::new_unchecked(ptr as *const T as *const () as *mut ()))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue