chore: resolve clippy warnings for pre-push audit

This commit is contained in:
Riz Ashraf committed 2026-10-09 01:06:30 +01:00
1 parent bd20482cea
commit 03f8786d24
7 files changed
+27 -31

No files matched your search

+5 -4
View File
@@ -808,7 +808,7 @@ mod tests {
#[test]
fn test_cli_parsing_default() {
let cli = Cli::try_parse_from(&["mcp-memory-server"]).unwrap();
let cli = Cli::try_parse_from(["mcp-memory-server"]).unwrap();
assert!(cli.command.is_none());
assert!(!cli.exit);
assert!(!cli.restart);
@@ -816,7 +816,7 @@ mod tests {
#[test]
fn test_cli_parsing_exit_and_target() {
let cli = Cli::try_parse_from(&[
let cli = Cli::try_parse_from([
"mcp-memory-server",
"--exit",
"--target",
@@ -829,7 +829,7 @@ mod tests {
#[test]
fn test_cli_parsing_gate_set() {
let cli = Cli::try_parse_from(&[
let cli = Cli::try_parse_from([
"mcp-memory-server",
"gate",
"set",
@@ -865,7 +865,7 @@ mod tests {
#[test]
fn test_cli_parsing_gate_verify() {
let cli = Cli::try_parse_from(&[
let cli = Cli::try_parse_from([
"mcp-memory-server",
"gate",
"verify",
@@ -930,6 +930,7 @@ mod tests {
}
#[tokio::test]
#[allow(clippy::await_holding_lock)]
async fn test_run_server_graceful_shutdown() {
let _lock = ENV_LOCK.lock().unwrap_or_else(|e| e.into_inner());
let temp_dir = tempfile::tempdir().unwrap();