From 545e2545b498f0d6d7e5af7e54cbf18b1fb4121a Mon Sep 17 00:00:00 2001 From: leeguooooo Date: Fri, 12 Jun 2026 15:49:16 +0900 Subject: [PATCH] fix(cookies): drop needless return in transfer arm (clippy -D warnings, CI red) The cookies transfer arm's tail `return Ok(...)` tripped clippy::needless_return, failing the CI lint gate (-D warnings). Make it a tail expression. --- cli/src/commands.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/src/commands.rs b/cli/src/commands.rs index 1845c69..f73b735 100644 --- a/cli/src/commands.rs +++ b/cli/src/commands.rs @@ -1328,11 +1328,11 @@ fn parse_command_inner(args: &[String], flags: &Flags) -> Result [--domain ]", }); } - return Ok(json!({ + Ok(json!({ "id": id, "action": "cookies_set", "cookies": cookies, - })); + })) } "set" => { // --curl mode: import cookies from a JSON array,