chore: update deps and clippy (#569)

This commit is contained in:
sigoden
2025-04-07 07:27:43 +08:00
committed by GitHub
parent 4fbdec2878
commit 09200860b4
3 changed files with 852 additions and 394 deletions

View File

@@ -1523,7 +1523,7 @@ impl PathItem {
}
pub fn base_name(&self) -> &str {
self.name.split('/').last().unwrap_or_default()
self.name.split('/').next_back().unwrap_or_default()
}
pub fn sort_by_name(&self, other: &Self) -> Ordering {