From 462cb556203359c797ceccfb5bc3a26f57731833 Mon Sep 17 00:00:00 2001 From: ShaharNaveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Thu, 24 Jul 2025 15:13:53 +0200 Subject: [PATCH 1/2] Resolve warning on android --- stdlib/src/resource.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/src/resource.rs b/stdlib/src/resource.rs index 3a72af31d9c..cef87fcde72 100644 --- a/stdlib/src/resource.rs +++ b/stdlib/src/resource.rs @@ -14,7 +14,8 @@ mod resource { cfg_if::cfg_if! { if #[cfg(target_os = "android")] { - use libc::RLIM_NLIMITS; + #[expect(warnings)] + const RLIM_NLIMITS: i32 = libc::RLIM_NLIMITS; } else { // This constant isn't abi-stable across os versions, so we just // pick a high number so we don't get false positive ValueErrors and just bubble up the From abcad46f5ab1dc91ab6b78f6a155b486273d65c7 Mon Sep 17 00:00:00 2001 From: Shahar Naveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Thu, 24 Jul 2025 15:49:15 +0200 Subject: [PATCH 2/2] Apply CodeRabbit suggestion --- stdlib/src/resource.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/src/resource.rs b/stdlib/src/resource.rs index cef87fcde72..8bd60cee879 100644 --- a/stdlib/src/resource.rs +++ b/stdlib/src/resource.rs @@ -14,7 +14,7 @@ mod resource { cfg_if::cfg_if! { if #[cfg(target_os = "android")] { - #[expect(warnings)] + #[expect(deprecated)] const RLIM_NLIMITS: i32 = libc::RLIM_NLIMITS; } else { // This constant isn't abi-stable across os versions, so we just