mirror of
https://github.com/Zenithsiz/dcb.git
synced 2026-02-04 00:21:57 +00:00
Moved everything in dcb_drv::new to root.
This commit is contained in:
parent
6e466534c0
commit
9add91abbc
@ -7,8 +7,8 @@ pub mod error;
|
||||
pub use error::{NewError, OpenFileError};
|
||||
|
||||
// Imports
|
||||
use crate::new::{
|
||||
ptr::{DirPtr, FilePtr},
|
||||
use crate::{
|
||||
DirPtr, FilePtr,
|
||||
DirEntry, DirEntryKind,
|
||||
};
|
||||
use bit_vec::BitVec;
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
//! Errors
|
||||
|
||||
// Imports
|
||||
use crate::new::ptr::{FileCursorError, ReadEntriesError, ReadEntryError};
|
||||
use crate::ptr::{FileCursorError, ReadEntriesError, ReadEntryError};
|
||||
use std::io;
|
||||
|
||||
/// Error for [`DrvFsCursor::new`](super::DrvFsCursor::new)
|
||||
|
||||
@ -60,14 +60,17 @@
|
||||
// Modules
|
||||
pub mod cursor;
|
||||
pub mod dir;
|
||||
pub mod entry;
|
||||
pub mod error;
|
||||
pub mod file;
|
||||
pub mod new;
|
||||
pub mod ptr;
|
||||
|
||||
// Exports
|
||||
pub use dir::{DirEntryWriter, DirWriter, DirWriterLister};
|
||||
pub use entry::{DirEntry, DirEntryKind};
|
||||
pub use error::WriteFsError;
|
||||
pub use file::FileWriter;
|
||||
pub use ptr::{DirPtr, FilePtr};
|
||||
|
||||
// Imports
|
||||
use std::io;
|
||||
|
||||
@ -1,8 +0,0 @@
|
||||
//!
|
||||
|
||||
// Modules
|
||||
pub mod entry;
|
||||
pub mod ptr;
|
||||
|
||||
// Exports
|
||||
pub use entry::{DirEntry, DirEntryKind};
|
||||
@ -28,5 +28,5 @@ pub enum ReadEntryError {
|
||||
|
||||
/// Unable to parse entry
|
||||
#[error("Unable to parse entry")]
|
||||
ParseEntry(#[source] crate::new::entry::FromBytesError),
|
||||
ParseEntry(#[source] crate::entry::FromBytesError),
|
||||
}
|
||||
@ -6,7 +6,7 @@ mod cli;
|
||||
// Imports
|
||||
use anyhow::Context;
|
||||
use cli::CliData;
|
||||
use dcb_drv::new::{ptr::DirPtr, DirEntryKind};
|
||||
use dcb_drv::{DirEntryKind, DirPtr};
|
||||
use std::{
|
||||
fs, io,
|
||||
path::{Path, PathBuf},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user