From 8d82ba729937baf83011354242cabc3d50c13dc2 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Sun, 26 Jun 2022 00:13:24 +0200 Subject: build: require safety comments on unsafe code (#13870) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk Co-authored-by: Divy Srivastava --- cli/unix_util.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cli/unix_util.rs') diff --git a/cli/unix_util.rs b/cli/unix_util.rs index 927b99d64..f282f6cfe 100644 --- a/cli/unix_util.rs +++ b/cli/unix_util.rs @@ -4,6 +4,8 @@ /// This is the difference between `ulimit -n` and `ulimit -n -H`. pub fn raise_fd_limit() { #[cfg(unix)] + // TODO(bartlomieju): + #[allow(clippy::undocumented_unsafe_blocks)] unsafe { let mut limits = libc::rlimit { rlim_cur: 0, -- cgit v1.2.3