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 e69a02e commit 546dc41Copy full SHA for 546dc41
src/fd.rs
@@ -1,6 +1,3 @@
1
-#[cfg(test)]
2
-mod tests;
3
-
4
use std::cmp;
5
use std::io::{self, IoSlice, IoSliceMut, Read};
6
use std::mem;
src/lib.rs
@@ -5,8 +5,13 @@ mod cvt;
#[cfg(test)]
7
mod tests {
8
+ use crate::fs;
9
+
10
#[test]
11
fn it_works() {
- assert_eq!(2 + 2, 4);
12
+ //let f = fs::File::create("/tmp/a").unwrap(); // TODO: need cross-platform fs.rs, https://github.com/rust-lang/rust/blob/master/library/std/src/fs.rs
13
+ // TODO: the trait `From<&str>` is not implemented for `&Path`
14
+ let f = fs::File::open("/etc/motd", &fs::OpenOptions::new()).unwrap();
15
+ println!("f = {:?}", f);
16
}
17
0 commit comments