From 1ed1096e60ea28d7dd287840fc24316466a97ca4 Mon Sep 17 00:00:00 2001 From: auronandace Date: Mon, 8 Dec 2025 08:41:00 +0000 Subject: [PATCH] add clippy annotation to netdb thanks to safety note --- src/header/netdb/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/header/netdb/mod.rs b/src/header/netdb/mod.rs index dc8633bc0e..d41865d12d 100644 --- a/src/header/netdb/mod.rs +++ b/src/header/netdb/mod.rs @@ -1075,6 +1075,7 @@ pub const extern "C" fn hstrerror(errcode: c_int) -> *const c_char { /// [`H_ERRNO`], [`hstrerror`], [`herror`], and other functions are deprecated as of /// POSIX.1-2001 and removed as of POSIX.1-2008. These functions are provided for backwards /// compatibility but should not be used by new code. +#[allow(clippy::not_unsafe_ptr_arg_deref)] #[unsafe(no_mangle)] #[deprecated] pub extern "C" fn herror(prefix: *const c_char) {