Misc code cleanups accumulated while working on other changes (#34787)
Release Notes: - N/A
This commit is contained in:
parent
7c1040bc93
commit
137081f050
7 changed files with 9 additions and 21 deletions
|
@ -15,7 +15,6 @@ pub fn replace_subschema<T: JsonSchema>(
|
|||
generator: &mut schemars::SchemaGenerator,
|
||||
schema: impl Fn() -> schemars::Schema,
|
||||
) -> schemars::Schema {
|
||||
// fallback on just using the schema name, which could collide.
|
||||
let schema_name = T::schema_name();
|
||||
let definitions = generator.definitions_mut();
|
||||
assert!(!definitions.contains_key(&format!("{schema_name}2")));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue