`expected usize, found i32`
Created by: php5engineer
What this repository is about?
To generate rustdoc
I need to build the project.
While running cargo build
on Ubuntu I’m getting a few expected usize, found i32
errors
--> src/main.rs:56:74
|
56 | .map(|socket| unsafe { File::from_raw_fd(socket) })
| ^^^^^^ expected i32, found usize
error[E0308]: mismatched types
--> src/main.rs:60:74
|
60 | .map(|socket| unsafe { File::from_raw_fd(socket) })
| ^^^^^^ expected i32, found usize
error[E0308]: mismatched types
--> src/main.rs:73:52
|
73 | let count = syscall::fpath(display_fd, &mut buf).unwrap();
| ^^^^^^^^^^ expected usize, found i32
error[E0308]: mismatched types
--> src/scheme.rs:117:59
|
117 | image: unsafe { display_fd_map(width, height, display_fd) },
| ^^^^^^^^^^ expected usize, found i32
error[E0308]: mismatched types
--> src/scheme.rs:704:82
|
704 | self.image = display_fd_map(event.width as i32, event.height as i32, self.display.as_raw_fd());
| ^^^^^^^^^^^^^^^^^^^^^^^^ expected usize, found i32
error: aborting due to 5 previous errors
For more information about this error, try `rustc --explain E0308`.
error: Could not compile `orbital`.```