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 runtime;
mod module {
mod todo;
}
mod module;
mod storage;
fn main() {

View File

@ -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 {

View File

@ -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>,