(Refactor) Move the Render trait into mod.rs instead of submodule
This commit is contained in:
parent
e34bef0e53
commit
6bc088db6e
|
@ -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>>;
|
||||||
|
}
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
use std::error::Error;
|
|
||||||
|
|
||||||
pub trait Renderer {
|
|
||||||
fn render(&self, book: &::book::MDBook) -> Result<(), Box<Error>>;
|
|
||||||
}
|
|
Loading…
Reference in New Issue