Skip to content

Commit 01edb93

Browse files
authored
Resolve libc::RLIM_NLIMITS warning on android (#6025)
* Resolve warning on android * Apply CodeRabbit suggestion
1 parent bcf5627 commit 01edb93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/src/resource.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ mod resource {
1414

1515
cfg_if::cfg_if! {
1616
if #[cfg(target_os = "android")] {
17-
use libc::RLIM_NLIMITS;
17+
#[expect(deprecated)]
18+
const RLIM_NLIMITS: i32 = libc::RLIM_NLIMITS;
1819
} else {
1920
// This constant isn't abi-stable across os versions, so we just
2021
// pick a high number so we don't get false positive ValueErrors and just bubble up the

0 commit comments

Comments
 (0)