Use Cow<str> for deserialization everywhere (#17330)

This commit is contained in:
William Woodruff
2026-01-05 17:57:35 -05:00
committed by GitHub
parent 478c884704
commit a27e0c850d
7 changed files with 18 additions and 13 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ impl<'a> serde::Deserialize<'a> for PythonRequest {
where
D: serde::Deserializer<'a>,
{
let s = String::deserialize(deserializer)?;
let s = <Cow<'_, str>>::deserialize(deserializer)?;
Ok(Self::parse(&s))
}
}