We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2d404d commit 2a2dde1Copy full SHA for 2a2dde1
tests/run-pass/libc.rs
@@ -5,6 +5,7 @@
5
6
extern crate libc;
7
8
+use std::convert::TryInto;
9
use std::env::temp_dir;
10
use std::fs::{File, remove_file};
11
use std::io::Write;
@@ -25,7 +26,7 @@ fn main() {
25
26
libc::posix_fadvise(
27
file.as_raw_fd(),
28
0,
- bytes.len() as i64,
29
+ bytes.len().try_into().unwrap(),
30
libc::POSIX_FADV_DONTNEED,
31
)
32
};
0 commit comments