Remove default implementation of Visitor::visit_schema()

Since it's now the only method, there's no good reason to implement the trait without implementing that method.
This commit is contained in:
Graham Esau 2024-08-04 16:45:39 +01:00
parent ce15380863
commit ade95a54d5

View file

@ -36,9 +36,7 @@ pub trait Visitor {
/// Override this method to modify a [`Schema`] and (optionally) its subschemas.
///
/// When overriding this method, you will usually want to call the [`visit_schema`] function to visit subschemas.
fn visit_schema(&mut self, schema: &mut Schema) {
visit_schema(self, schema)
}
fn visit_schema(&mut self, schema: &mut Schema);
}
/// Visits all subschemas of the [`Schema`].