mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-13 22:32:35 +00:00
(Refactor) Move the Render trait into mod.rs instead of submodule
This commit is contained in:
parent
e34bef0e53
commit
6bc088db6e
2 changed files with 6 additions and 7 deletions
|
@ -1,5 +1,9 @@
|
|||
pub use self::renderer::Renderer;
|
||||
pub use self::html_handlebars::HtmlHandlebars;
|
||||
|
||||
pub mod renderer;
|
||||
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 a new issue