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:
parent
ce15380863
commit
ade95a54d5
1 changed files with 1 additions and 3 deletions
|
@ -36,9 +36,7 @@ pub trait Visitor {
|
||||||
/// Override this method to modify a [`Schema`] and (optionally) its subschemas.
|
/// 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.
|
/// 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) {
|
fn visit_schema(&mut self, schema: &mut Schema);
|
||||||
visit_schema(self, schema)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Visits all subschemas of the [`Schema`].
|
/// Visits all subschemas of the [`Schema`].
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue