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

@ -242,7 +242,7 @@ fn init_handlebars() -> Result<handlebars::Handlebars<'static>> {
out: &mut dyn handlebars::Output|
-> handlebars::HelperResult {
let param = h.param(0).and_then(|v| v.value().as_str()).unwrap_or("");
let basename = param.split('/').last().unwrap_or("");
let basename = param.split('/').next_back().unwrap_or("");
out.write(&format!("`{}`", basename))?;
Ok(())
},

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;
};

View File

@ -1194,7 +1194,7 @@ impl LanguageServer for Backend {
// Get last word
let last_word = line_prefix
.split(|c: char| c.is_whitespace() || c.is_ascii_punctuation())
.last()
.next_back()
.unwrap_or("");
// If the last word starts with a digit, return no completions

View File

@ -1,3 +1,3 @@
[toolchain]
channel = "1.85"
channel = "1.86"
components = ["clippy", "rustfmt"]