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(())
},