(Refactor) Move the Render trait into mod.rs instead of submodule

This commit is contained in:
Mathieu David 2016-04-27 14:19:59 +02:00
parent e34bef0e53
commit 6bc088db6e
2 changed files with 6 additions and 7 deletions

View File

@ -1,5 +1,9 @@
pub use self::renderer::Renderer;
pub use self::html_handlebars::HtmlHandlebars; pub use self::html_handlebars::HtmlHandlebars;
pub mod renderer;
mod html_handlebars; mod html_handlebars;
use std::error::Error;
pub trait Renderer {
fn render(&self, book: &::book::MDBook) -> Result<(), Box<Error>>;
}

View File

@ -1,5 +0,0 @@
use std::error::Error;
pub trait Renderer {
fn render(&self, book: &::book::MDBook) -> Result<(), Box<Error>>;
}