Switch serde dependency to serde_core (#3477)

This commit is contained in:
Jonas Platte
2025-09-14 08:49:07 +02:00
committed by GitHub
parent 94af9c3262
commit 4ab8df5e42
19 changed files with 74 additions and 59 deletions
+2 -3
View File
@@ -2,7 +2,7 @@ use std::{any::type_name, fmt};
use super::sealed::Sealed;
use http::Uri;
use serde::Serialize;
use serde_core::Serialize;
/// A type safe path.
///
@@ -384,7 +384,6 @@ impl_second_element_is!(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13,
#[cfg(test)]
mod tests {
use super::*;
use crate::{
extract::WithRejection,
routing::{RouterExt, TypedPath},
@@ -394,7 +393,7 @@ mod tests {
response::{IntoResponse, Response},
Router,
};
use serde::Deserialize;
use serde::{Deserialize, Serialize};
#[derive(TypedPath, Deserialize)]
#[typed_path("/users/{id}")]