From d868f1970fe944d807cd583e8b70d014d1b037b1 Mon Sep 17 00:00:00 2001 From: xamgore Date: Mon, 23 Sep 2024 18:29:48 +0300 Subject: [PATCH] fixup! Speed up image stuff (#223) --- src/lib.rs | 1 + src/structs/image.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 97234062..c9a7313c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -122,6 +122,7 @@ extern crate chrono; extern crate fancy_regex; extern crate hashbrown; +#[cfg(feature = "image")] extern crate image; extern crate md5; extern crate quick_xml; diff --git a/src/structs/image.rs b/src/structs/image.rs index 51ec2b49..ec89678e 100644 --- a/src/structs/image.rs +++ b/src/structs/image.rs @@ -163,6 +163,7 @@ impl Image { self.set_one_cell_anchor(one_cell_anchor); } + #[cfg(feature = "image")] pub fn change_image(&mut self, path: &str) { let marker = self.get_from_marker_type().clone(); self.remove_two_cell_anchor();