Merge pull request #1276 from waywardmonkeys/fix-rkyv-feature-doc-warnings

docs: Fix 2 warnings when building with rkyv.
This commit is contained in:
Andreas Borgen Longva 2023-08-15 09:19:07 +02:00 committed by GitHub
commit 6ac9d8995c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>,
}