add default for FilePointer
This commit is contained in:
parent
88ed1ddafd
commit
38bb53f98c
@ -58,6 +58,12 @@ pub struct FilePointer<T> {
|
||||
_phantom: PhantomData<T>,
|
||||
}
|
||||
|
||||
impl<T> Default for FilePointer<T> {
|
||||
fn default() -> Self {
|
||||
Self::null()
|
||||
}
|
||||
}
|
||||
|
||||
unsafe impl<T> Send for FilePointer<T> {}
|
||||
unsafe impl<T> Sync for FilePointer<T> {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user