fix some clippy::wrong_self_convention

This commit is contained in:
Dustin J. Mitchell 2022-02-13 03:37:50 +00:00
parent ad464c4779
commit fc73911cde
3 changed files with 15 additions and 13 deletions

View file

@ -16,6 +16,7 @@ pub(crate) trait PassByValue: Sized {
/// # Safety
///
/// `self` must be a valid CType.
#[allow(clippy::wrong_self_convention)]
unsafe fn from_ctype(self) -> Self::RustType;
/// Convert a Rust value to a C value.