add default for FilePointer

This commit is contained in:
soruh 2023-08-14 18:06:26 +02:00
parent 88ed1ddafd
commit 38bb53f98c

View File

@ -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> {}