diff --git a/src/example_ffi.rs b/src/example_ffi.rs index 93fcd3e..9b024b3 100644 --- a/src/example_ffi.rs +++ b/src/example_ffi.rs @@ -1,6 +1,7 @@ //! This is just a sample of what FFI using this crate can look like. #![allow(missing_docs)] +#![allow(suspicious_runtime_symbol_definitions)] #[cfg(any(unix, target_os = "wasi", target_os = "hermit"))] use crate::{BorrowedFd, OwnedFd}; diff --git a/src/views.rs b/src/views.rs index ffa8465..82343e2 100644 --- a/src/views.rs +++ b/src/views.rs @@ -193,7 +193,7 @@ impl fmt::Debug for FilelikeView<'_, Target> { #[allow(clippy::missing_inline_in_public_items)] fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_struct("FilelikeView") - .field("target", &*self) + .field("target", self) .finish() } } @@ -202,7 +202,7 @@ impl fmt::Debug for SocketlikeView<'_, Target> { #[allow(clippy::missing_inline_in_public_items)] fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_struct("SocketlikeView") - .field("target", &*self) + .field("target", self) .finish() } }