Created
November 6, 2017 00:50
-
-
Save sajattack/420aedf59bbc8ddc51221d01b65c4125 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mut stb = syscall::Stat; | |
if syscall::call::fstat(*dirp.fd, &stb).unwrap() < 0 { | |
do_something(); | |
} | |
/*| if syscall::call::fstat(*dirp.fd, &stb).unwrap() < 0 { | |
| ^^^^ types differ in mutability | |
| | |
= note: expected type `&mut syscall::Stat` | |
found type `&syscall::Stat`*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment