aboutsummaryrefslogtreecommitdiffstats
path: root/src/renderer.rs
diff options
context:
space:
mode:
authorPhilipp A2019-03-31 23:21:45 +0200
committerPhilipp A2019-03-31 23:21:45 +0200
commit4e22848e3faa255c34fdc1b6503a88a02a7350c5 (patch)
treed6875de0087de8ab01263fb4f93a6f4457caafd1 /src/renderer.rs
parent33f1186bfb5deb0db5ae29d26daf18dbe38fd21a (diff)
downloadrust-rst-4e22848e3faa255c34fdc1b6503a88a02a7350c5.tar.bz2
Convert indentation to tabs
Diffstat (limited to 'src/renderer.rs')
-rw-r--r--src/renderer.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/renderer.rs b/src/renderer.rs
index 9e51eb4..fed670b 100644
--- a/src/renderer.rs
+++ b/src/renderer.rs
@@ -9,13 +9,13 @@ 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(())
+ 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(())
+ serde_xml_rs::to_writer(stream, &document).map_err(failure::SyncFailure::new)?;
+ Ok(())
}
pub use html::render_html;