docs: Fix 2 warnings when building with rkyv.
This commit is contained in:
parent
8d7763ab8f
commit
226761323f
|
@ -1,6 +1,6 @@
|
||||||
//! Wrapper that allows changing the generic type of a PhantomData<T>
|
//! Wrapper that allows changing the generic type of a PhantomData<T>
|
||||||
//!
|
//!
|
||||||
//! Copied from https://github.com/rkyv/rkyv_contrib (MIT-Apache2 licences) which isn’t published yet.
|
//! Copied from <https://github.com/rkyv/rkyv_contrib> (MIT-Apache2 licences) which isn’t published yet.
|
||||||
|
|
||||||
use rkyv::{
|
use rkyv::{
|
||||||
with::{ArchiveWith, DeserializeWith, SerializeWith},
|
with::{ArchiveWith, DeserializeWith, SerializeWith},
|
||||||
|
@ -8,7 +8,7 @@ use rkyv::{
|
||||||
};
|
};
|
||||||
use std::marker::PhantomData;
|
use std::marker::PhantomData;
|
||||||
|
|
||||||
/// A wrapper that allows for changing the generic type of a PhantomData<T>.
|
/// A wrapper that allows for changing the generic type of a `PhantomData<T>`.
|
||||||
pub struct CustomPhantom<NT: ?Sized> {
|
pub struct CustomPhantom<NT: ?Sized> {
|
||||||
_data: PhantomData<*const NT>,
|
_data: PhantomData<*const NT>,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue