diff --git a/schemars/src/visit.rs b/schemars/src/visit.rs index 850c1eb..35453e0 100644 --- a/schemars/src/visit.rs +++ b/schemars/src/visit.rs @@ -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`].