From 6bc088db6ef70016ccf80c2d98f8ebc74ca0828f Mon Sep 17 00:00:00 2001 From: Mathieu David Date: Wed, 27 Apr 2016 14:19:59 +0200 Subject: [PATCH] (Refactor) Move the Render trait into mod.rs instead of submodule --- src/renderer/mod.rs | 8 ++++++-- src/renderer/renderer.rs | 5 ----- 2 files changed, 6 insertions(+), 7 deletions(-) delete mode 100644 src/renderer/renderer.rs diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs index 8216db27..e76ffb48 100644 --- a/src/renderer/mod.rs +++ b/src/renderer/mod.rs @@ -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>; +} diff --git a/src/renderer/renderer.rs b/src/renderer/renderer.rs deleted file mode 100644 index 9966a0fa..00000000 --- a/src/renderer/renderer.rs +++ /dev/null @@ -1,5 +0,0 @@ -use std::error::Error; - -pub trait Renderer { - fn render(&self, book: &::book::MDBook) -> Result<(), Box>; -}