Compare commits
4 commits
db28ab982a
...
4f45383ff7
Author | SHA1 | Date | |
---|---|---|---|
4f45383ff7 | |||
2a8e4393ae | |||
3a625f5b5b | |||
35f41f8c64 |
4 changed files with 12 additions and 7 deletions
3
justfile
3
justfile
|
@ -1,8 +1,7 @@
|
|||
build:
|
||||
cargo fmt --check
|
||||
cargo hack --feature-powerset clippy
|
||||
cargo hack --feature-powerset build
|
||||
cargo hack --feature-powerset test
|
||||
cargo hack --feature-powerset clippy
|
||||
|
||||
install-hooks:
|
||||
@echo "Installing git hooks"
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
//
|
||||
mod dir;
|
||||
mod file;
|
||||
mod path;
|
||||
mod reader;
|
||||
mod system;
|
||||
mod path;
|
||||
mod file;
|
||||
mod dir;
|
||||
mod reader;
|
||||
|
||||
pub use system::FileSystem;
|
||||
|
|
|
@ -1,8 +1,12 @@
|
|||
//
|
||||
use std::{fmt::Display, path::Path, str::Lines};
|
||||
use std::{
|
||||
fmt::Display,
|
||||
path::Path, str::Lines,
|
||||
};
|
||||
|
||||
use crate::fs::Result;
|
||||
|
||||
|
||||
pub struct ReaderReal {
|
||||
contents: String,
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@ use crate::fs::{Error, Result};
|
|||
|
||||
use super::{dir::DirReal, file::FileReal, path::PathReal};
|
||||
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct FileSystem {
|
||||
base: PathBuf,
|
||||
|
@ -58,3 +59,4 @@ impl FileSystem {
|
|||
Ok(abs_path)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue