Cleanup module confusion

This commit is contained in:
Matthias Beyer 2015-10-24 17:46:01 +02:00
parent 63daf452dc
commit c50d097831
3 changed files with 10 additions and 9 deletions

View File

@ -5,10 +5,7 @@ use runtime::Runtime;
mod cli; mod cli;
mod runtime; mod runtime;
mod module { mod module;
mod todo;
}
mod storage; mod storage;
fn main() { fn main() {

View File

@ -1,8 +1,10 @@
pub use runtime::Runtime; use runtime::Runtime;
pub use std::error::Error; use std::error::Error;
pub use std::fs::Path; use std::path::Path;
pub use module::todo::TodoModule; use module::todo::TodoModule;
mod todo;
pub trait Module { pub trait Module {

View File

@ -1,5 +1,7 @@
use super::Module; use runtime::Runtime;
use module::Module;
use std::path::Path; use std::path::Path;
use std::error::Error;
pub struct TodoModule { pub struct TodoModule {
path: Option<String>, path: Option<String>,