From 80b8b151d79918d794db90ccd4ae094950a19c5f Mon Sep 17 00:00:00 2001 From: daimond113 <72147841+daimond113@users.noreply.github.com> Date: Tue, 31 Dec 2024 01:37:42 +0100 Subject: [PATCH] fix: switch to schemars attribute --- src/source/workspace/specifier.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/source/workspace/specifier.rs b/src/source/workspace/specifier.rs index d8fe671..65f3296 100644 --- a/src/source/workspace/specifier.rs +++ b/src/source/workspace/specifier.rs @@ -32,16 +32,16 @@ impl Display for WorkspaceDependencySpecifier { pub enum VersionType { /// The "^" version type #[default] - #[cfg_attr(feature = "schema", serde(rename = "^"))] + #[cfg_attr(feature = "schema", schemars(rename = "^"))] Caret, /// The "~" version type - #[cfg_attr(feature = "schema", serde(rename = "~"))] + #[cfg_attr(feature = "schema", schemars(rename = "~"))] Tilde, /// The "=" version type - #[cfg_attr(feature = "schema", serde(rename = "="))] + #[cfg_attr(feature = "schema", schemars(rename = "="))] Exact, /// The "*" version type - #[cfg_attr(feature = "schema", serde(rename = "*"))] + #[cfg_attr(feature = "schema", schemars(rename = "*"))] Wildcard, }