Skip to content

Commit 83f0e89

Browse files
committed
Fix deprecated warnings
1 parent 70781c6 commit 83f0e89

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/sys/test_sockopt.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ fn test_so_type_unknown() {
242242
use nix::errno::Errno;
243243

244244
require_capability!("test_so_type", CAP_NET_RAW);
245+
#[allow(deprecated)]
245246
let raw_fd = unsafe { libc::socket(libc::AF_PACKET, libc::SOCK_PACKET, 0) };
246247
assert!(raw_fd >= 0, "Error opening socket: {}", nix::Error::last());
247248
let sockfd = unsafe { OwnedFd::from_raw_fd(raw_fd) };

0 commit comments

Comments
 (0)