diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) } |