Cleanup module confusion
This commit is contained in:
parent
63daf452dc
commit
c50d097831
3 changed files with 10 additions and 9 deletions
|
@ -5,10 +5,7 @@ use runtime::Runtime;
|
|||
|
||||
mod cli;
|
||||
mod runtime;
|
||||
mod module {
|
||||
mod todo;
|
||||
}
|
||||
|
||||
mod module;
|
||||
mod storage;
|
||||
|
||||
fn main() {
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
pub use runtime::Runtime;
|
||||
pub use std::error::Error;
|
||||
pub use std::fs::Path;
|
||||
use runtime::Runtime;
|
||||
use std::error::Error;
|
||||
use std::path::Path;
|
||||
|
||||
pub use module::todo::TodoModule;
|
||||
use module::todo::TodoModule;
|
||||
|
||||
mod todo;
|
||||
|
||||
pub trait Module {
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
use super::Module;
|
||||
use runtime::Runtime;
|
||||
use module::Module;
|
||||
use std::path::Path;
|
||||
use std::error::Error;
|
||||
|
||||
pub struct TodoModule {
|
||||
path: Option<String>,
|
||||
|
|
Loading…
Reference in a new issue