Upgrade to rust toolchain 1.86 (#6134)

This commit is contained in:
Jonathan Tran
2025-04-03 15:59:26 -04:00
committed by GitHub
parent 716ed3acb3
commit bf6c91932c
4 changed files with 4 additions and 4 deletions

View File

@ -612,7 +612,7 @@ pub fn get_description_string_from_schema(schema: &schemars::schema::RootSchema)
}
if let Some(reference) = &schema.schema.reference {
if let Some(definition) = schema.definitions.get(reference.split('/').last().unwrap_or("")) {
if let Some(definition) = schema.definitions.get(reference.split('/').next_back().unwrap_or("")) {
let schemars::schema::Schema::Object(definition) = definition else {
return None;
};