move around prelude stuff

This commit is contained in:
OMGeeky
2024-02-18 11:32:16 +01:00
parent f824c05d65
commit f08c9937e4
3 changed files with 11 additions and 5 deletions

View File

@@ -1,3 +1,2 @@
pub(crate) type Result<T> = StdResult<T, Box<dyn Error>>;
pub(crate) use gdriver_common::drive_structure::drive_id::{DriveId, ROOT_ID};
pub(crate) use std::{error::Error, result::Result as StdResult};
pub(crate) use gdriver_common::prelude::result::*;
pub(crate) use gdriver_common::prelude::*;

View File

@@ -0,0 +1,2 @@
pub(crate) use gdriver_common::prelude::result::*;
pub(crate) use gdriver_common::prelude::*;

View File

@@ -1,5 +1,10 @@
pub use crate::config::Configuration;
pub use crate::config::CONFIGURATION;
pub use crate::drive_structure::drive_id::{DriveId, ROOT_ID};
pub use crate::ipc;
pub(crate) type Result<T> = std::result::Result<T, Box<dyn std::error::Error>>;
pub(crate) use std::result::Result as StdResult;
pub mod result {
pub type Result<T> = std::result::Result<T, Box<dyn std::error::Error>>;
pub use std::result::Result as StdResult;
}
pub(crate) use result::*;