chore: update deps and clippy (#569)

pull/568/head^2
sigoden 2025-04-07 07:27:43 +08:00 committed by GitHub
parent 4fbdec2878
commit 09200860b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 852 additions and 394 deletions

1242
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -63,7 +63,7 @@ assert_cmd = "2"
reqwest = { version = "0.12", features = ["blocking", "multipart", "rustls-tls"], default-features = false } reqwest = { version = "0.12", features = ["blocking", "multipart", "rustls-tls"], default-features = false }
assert_fs = "1" assert_fs = "1"
port_check = "0.2" port_check = "0.2"
rstest = "0.23" rstest = "0.25"
regex = "1" regex = "1"
url = "2" url = "2"
predicates = "3" predicates = "3"

View File

@ -1523,7 +1523,7 @@ impl PathItem {
} }
pub fn base_name(&self) -> &str { 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 { pub fn sort_by_name(&self, other: &Self) -> Ordering {