Skip to content

Commit fa465a9

Browse files
author
Bryant Mairs
committed
Remove unnecessary unsafe block
Removes a compilation warning
1 parent 3fbce6c commit fa465a9

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
@@ -922,7 +922,7 @@ pub const SOCK_NONBLOCK: ::c_int = 0x20000000;
922922
// http://cvsweb.netbsd.org/bsdweb.cgi/src/include/dirent.h?rev=1.36
923923
f! {
924924
pub fn dirfd(dirp: *mut ::DIR) -> ::c_int {
925-
unsafe { *(dirp as *const ::c_int) }
925+
*(dirp as *const ::c_int)
926926
}
927927

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

0 commit comments

Comments
 (0)