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 cbdc96e commit ce156a3Copy full SHA for ce156a3
solutions/24_file_io/file_io3.rs
@@ -1,5 +1,5 @@
1
use std::fs;
2
-use std::path::{Path, PathBuf};
+use std::path::{PathBuf};
3
4
fn main() {
5
@@ -17,10 +17,10 @@ fn main() {
17
println!("File size {}", meta_data.len());
18
assert_eq!(meta_data.len(), 117);
19
println!("File permissions {:?}", meta_data.permissions());
20
- assert_eq!(meta_data.permissions().readonly(), false);
+ assert!(!meta_data.permissions().readonly());
21
}else {
22
- println!("Could not get metadata");
23
- assert!(false);
+ panic!("Could not get metadata");
+
24
}
25
26
0 commit comments