Skip to content

Commit

Permalink
impl Serialize/Deserialize if serde feature is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron404 committed Dec 31, 2024
1 parent 91d96a0 commit e9f8cd7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/imageops/sample.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ use crate::{ImageBuffer, Rgba32FImage};
/// </tr>
/// </table>
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub enum FilterType {
/// Nearest Neighbor
Nearest,
Expand Down

0 comments on commit e9f8cd7

Please sign in to comment.