Fix tidy issues.

This commit is contained in:
Emilio Cobos Álvarez 2018-09-18 11:44:47 +02:00
parent 84ca681a78
commit 4c97f68f3e
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 13 additions and 15 deletions

View file

@ -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 ()))
}
}
}