Skip to content

Commit

Permalink
Remove schemars from Image/Brush/BrushRef
Browse files Browse the repository at this point in the history
Because these impls depend on the following pr:
GREsau/schemars#252
  • Loading branch information
ratmice committed Feb 14, 2024
1 parent 7f7386e commit c4a3536
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/brush.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use super::{Color, Gradient, Image};
///
/// See also [`BrushRef`] which can be used to avoid allocations.
#[derive(Clone, PartialEq, Debug)]
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub enum Brush {
/// Solid color brush.
Expand Down Expand Up @@ -43,7 +42,6 @@ impl Default for Brush {
/// directly without cloning or allocating.
#[derive(Clone, PartialEq, Debug)]
#[cfg_attr(feature = "serde", derive(serde::Serialize))]
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub enum BrushRef<'a> {
/// Solid color brush.
Solid(Color),
Expand Down
1 change: 0 additions & 1 deletion src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ impl Format {

/// Owned shareable image resource.
#[derive(Clone, PartialEq, Debug)]
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct Image {
/// Blob containing the image data.
Expand Down

0 comments on commit c4a3536

Please sign in to comment.