1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-04 02:24:12 +02:00

update schemars to 1.0

This commit is contained in:
Robin Appelman 2025-09-17 00:05:37 +02:00
commit b500fe772a
5 changed files with 11641 additions and 8280 deletions

View file

@ -125,11 +125,11 @@ impl<'de> Deserialize<'de> for MaybeUtf8String {
#[cfg(feature = "schema")]
impl schemars::JsonSchema for MaybeUtf8String {
fn schema_name() -> String {
fn schema_name() -> std::borrow::Cow<'static, str> {
String::schema_name()
}
fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema {
fn json_schema(gen: &mut schemars::SchemaGenerator) -> schemars::Schema {
String::json_schema(gen)
}
}