Remove explicit lifetime from get_schema_object
This commit is contained in:
parent
f45181aac3
commit
10ab02f167
1 changed files with 2 additions and 1 deletions
|
@ -148,7 +148,8 @@ impl SchemaGenerator {
|
|||
})
|
||||
}
|
||||
|
||||
pub fn get_schema_object<'a>(&'a self, mut schema: &'a Schema) -> Result<SchemaObject> {
|
||||
pub fn get_schema_object(&self, schema: &Schema) -> Result<SchemaObject> {
|
||||
let mut schema = schema;
|
||||
loop {
|
||||
match schema {
|
||||
Schema::Object(o) => return Ok(o.clone()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue