mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-12-28 06:49:19 +00:00
Checker fixes
This commit is contained in:
parent
cbdc96e6cb
commit
ce156a349c
@ -1,5 +1,5 @@
|
||||
use std::fs;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::path::{PathBuf};
|
||||
|
||||
fn main() {
|
||||
|
||||
@ -17,10 +17,10 @@ fn main() {
|
||||
println!("File size {}", meta_data.len());
|
||||
assert_eq!(meta_data.len(), 117);
|
||||
println!("File permissions {:?}", meta_data.permissions());
|
||||
assert_eq!(meta_data.permissions().readonly(), false);
|
||||
assert!(!meta_data.permissions().readonly());
|
||||
}else {
|
||||
println!("Could not get metadata");
|
||||
assert!(false);
|
||||
panic!("Could not get metadata");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user