mirror of
https://github.com/OMGeeky/gdriver2.git
synced 2025-12-27 06:29:37 +01:00
move around prelude stuff
This commit is contained in:
@@ -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::*;
|
||||
|
||||
2
gdriver-client/src/prelude.rs
Normal file
2
gdriver-client/src/prelude.rs
Normal file
@@ -0,0 +1,2 @@
|
||||
pub(crate) use gdriver_common::prelude::result::*;
|
||||
pub(crate) use gdriver_common::prelude::*;
|
||||
@@ -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::*;
|
||||
|
||||
Reference in New Issue
Block a user