Skip to content

Commit 6cf652e

Browse files
author
Bryant Mairs
committed
Remove unnecessary unsafe block
Removes a compilation warning
1 parent b080eb5 commit 6cf652e

File tree

1 file changed

+1
-1
lines changed
  • src/unix/bsd/netbsdlike/netbsd

1 file changed

+1
-1
lines changed

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ pub const SOCK_NONBLOCK: ::c_int = 0x20000000;
910910
// http://cvsweb.netbsd.org/bsdweb.cgi/src/include/dirent.h?rev=1.36
911911
f! {
912912
pub fn dirfd(dirp: *mut ::DIR) -> ::c_int {
913-
unsafe { *(dirp as *const ::c_int) }
913+
*(dirp as *const ::c_int)
914914
}
915915

916916
pub fn WIFCONTINUED(status: ::c_int) -> bool {

0 commit comments

Comments
 (0)