build: upgrade Rust baseline to 1.96.0 (#3291)

* build: upgrade Rust baseline to 1.96.0

* ci: pin Rust workflows to 1.96.0

* remove

* ci: pin setup action to Rust 1.96.0

* build: pin toolchain to Rust 1.96.0
This commit is contained in:
houseme
2026-06-09 04:32:37 +08:00
committed by GitHub
parent 9354b939ca
commit aabda41ae5
8 changed files with 20 additions and 17 deletions
+4 -3
View File
@@ -290,17 +290,18 @@ impl From<tonic::Status> for LockError {
#[cfg(test)]
mod tests {
use super::*;
use std::assert_matches;
#[test]
fn test_error_creation() {
let timeout_err = LockError::timeout("test-resource", Duration::from_secs(5));
assert!(matches!(timeout_err, LockError::Timeout { .. }));
assert_matches!(timeout_err, LockError::Timeout { .. });
let not_found_err = LockError::resource_not_found("missing-resource");
assert!(matches!(not_found_err, LockError::ResourceNotFound { .. }));
assert_matches!(not_found_err, LockError::ResourceNotFound { .. });
let permission_err = LockError::permission_denied("insufficient privileges");
assert!(matches!(permission_err, LockError::PermissionDenied { .. }));
assert_matches!(permission_err, LockError::PermissionDenied { .. });
}
#[test]