html terminal
Diffstat (limited to 'src/bot/schematic.rs')
-rw-r--r--src/bot/schematic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bot/schematic.rs b/src/bot/schematic.rs
index 2e1856c..2172927 100644
--- a/src/bot/schematic.rs
+++ b/src/bot/schematic.rs
@@ -89,7 +89,7 @@ pub fn to_png(s: &Schematic<'_>) -> Vec<u8> {
transparent_color: None,
},
BitDepth::Eight,
- p.buffer,
+ p.take_buffer(),
)
.unwrap();
p.create_optimized_png(&oxipng::Options {