Skip to content

Commit 08927c6

Browse files
lisanhu38
authored andcommitted
minor fixes
1 parent 157f58d commit 08927c6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

plotters/src/evcxr.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ impl BitMapWrapper {
6060

6161
impl std::fmt::Debug for BitMapWrapper {
6262
fn fmt(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {
63-
let svg = self.0.as_str();
63+
let enc = self.0.as_str();
6464
write!(
6565
formatter,
6666
"EVCXR_BEGIN_CONTENT text/html\n<img style=\"{}\" src=\"data:image/png;base64,{}\"/>\nEVCXR_END_CONTENT",
67-
self.1, svg
67+
self.1, enc
6868
)
6969
}
7070
}
@@ -96,7 +96,6 @@ pub fn evcxr_bitmap_figure<
9696
let enc_buf = encode_png(&img).unwrap();
9797
let buffer = base64::encode(&enc_buf);
9898
BitMapWrapper(buffer, "".to_string())
99-
// todo!()
10099
}
101100

102101
pub fn evcxr_animation<

0 commit comments

Comments
 (0)