summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index aa34472..ce413b7 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -216,7 +216,7 @@ impl DiagramFilter {
}
fn error_block(&self, error: &DiagramError) -> Block {
- let msg = Inline::Str(format!("ERROR: {}", error.to_string()));
+ let msg = Inline::Str(format!("ERROR: {}", error));
let msg = vec![Inline::Strong(vec![msg])];
Block::Para(msg)
}
@@ -229,7 +229,7 @@ impl DiagramFilter {
}
fn svg_as_data_url(&self, svg: &[u8]) -> String {
- let svg = base64::encode(&svg);
+ let svg = base64::encode(svg);
format!("data:image/svg+xml;base64,{}", svg)
}