From 82f1e7d0a08da453138e16c577510f0926ed7f63 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Fri, 13 Nov 2026 14:47:38 +0000 Subject: [PATCH] chore: fix clippy lints --- src/example_ffi.rs | 1 + src/views.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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() } }