aboutsummaryrefslogtreecommitdiffstats
path: root/src/renderer.rs
diff options
context:
space:
mode:
authorPhilipp A2019-12-26 23:01:00 +0100
committerPhilipp A2019-12-26 23:36:48 +0100
commita0e3c53758d526bb418c068bce1c99fa5a597ed3 (patch)
treee640238b011a9ea7806ccccaf1a435e4b371a376 /src/renderer.rs
parent7018f5d3c42f18b6c83f398db9f1915361a7c679 (diff)
downloadrust-rst-a0e3c53758d526bb418c068bce1c99fa5a597ed3.tar.bz2
Split into smaller crates
Diffstat (limited to 'src/renderer.rs')
-rw-r--r--src/renderer.rs24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/renderer.rs b/src/renderer.rs
deleted file mode 100644
index 82a5826..0000000
--- a/src/renderer.rs
+++ /dev/null
@@ -1,24 +0,0 @@
-mod html;
-#[cfg(test)]
-pub mod html_tests;
-
-
-use std::io::Write;
-
-use failure::Error;
-
-use crate::document_tree::Document;
-
-
-pub fn render_json<W>(document: &Document, stream: W) -> Result<(), Error> where W: Write {
- serde_json::to_writer(stream, &document)?;
- Ok(())
-}
-
-pub fn render_xml<W>(document: &Document, stream: W) -> Result<(), Error> where W: Write {
- serde_xml_rs::to_writer(stream, &document).map_err(failure::SyncFailure::new)?;
- Ok(())
-}
-
-pub use html::render_html;
-