diff --git a/src/imageops/sample.rs b/src/imageops/sample.rs index 82d12386dd..b2b2c571a1 100644 --- a/src/imageops/sample.rs +++ b/src/imageops/sample.rs @@ -6,6 +6,8 @@ use std::f32; use num_traits::{NumCast, ToPrimitive, Zero}; +#[cfg(feature = "serde")] +use serde::{Deserialize, Serialize}; use crate::image::{GenericImage, GenericImageView}; use crate::traits::{Enlargeable, Pixel, Primitive};