docs: Fix 2 warnings when building with rkyv.

This commit is contained in:
Bruce Mitchener 2023-08-14 17:23:59 +07:00
parent 8d7763ab8f
commit 226761323f
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
//! Wrapper that allows changing the generic type of a PhantomData<T>
//!
//! Copied from https://github.com/rkyv/rkyv_contrib (MIT-Apache2 licences) which isnt published yet.
//! Copied from <https://github.com/rkyv/rkyv_contrib> (MIT-Apache2 licences) which isnt published yet.
use rkyv::{
with::{ArchiveWith, DeserializeWith, SerializeWith},
@ -8,7 +8,7 @@ use rkyv::{
};
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> {
_data: PhantomData<*const NT>,
}