From 215d77a5fe7b82735514a420be1e9e7a44edc9e4 Mon Sep 17 00:00:00 2001 From: Jonas Bushart Date: Tue, 23 Jan 2024 20:19:20 +0000 Subject: [PATCH] Use #[serde_as] from import without crate name --- serde_with/tests/schemars_0_8.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/serde_with/tests/schemars_0_8.rs b/serde_with/tests/schemars_0_8.rs index 7d024fba..0c4ab070 100644 --- a/serde_with/tests/schemars_0_8.rs +++ b/serde_with/tests/schemars_0_8.rs @@ -33,7 +33,7 @@ macro_rules! declare_snapshot_test { #[test] $(#[$tattr])* fn $test() { - #[serde_with::serde_as] + #[serde_as] #[derive(JsonSchema, Serialize)] $( #[$stattr] )* struct $name { @@ -62,7 +62,7 @@ fn schemars_basic() { use ::schemars_0_8::JsonSchema; use serde::Serialize; - #[serde_with::serde_as] + #[serde_as] #[derive(JsonSchema, Serialize)] #[schemars(crate = "::schemars_0_8")] struct Basic { @@ -245,7 +245,7 @@ mod snapshots { mod derive { use super::*; - #[serde_with::serde_as] + #[serde_as] #[derive(Serialize)] #[cfg_attr(all(), derive(JsonSchema))] struct Enabled { @@ -253,7 +253,7 @@ mod derive { field: u32, } - #[serde_with::serde_as] + #[serde_as] #[derive(Serialize)] #[cfg_attr(any(), derive(JsonSchema))] struct Disabled { @@ -272,7 +272,7 @@ mod derive { mod array { use super::*; - #[serde_with::serde_as] + #[serde_as] #[derive(JsonSchema, Serialize)] struct FixedArray { #[serde_as(as = "[_; 3]")]