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.
This commit is contained in:
+2
-2
@@ -1328,11 +1328,11 @@ fn parse_command_inner(args: &[String], flags: &Flags) -> Result<Value, ParseErr
|
|||||||
usage: "cookies transfer --from <profile> [--domain <domain>]",
|
usage: "cookies transfer --from <profile> [--domain <domain>]",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return Ok(json!({
|
Ok(json!({
|
||||||
"id": id,
|
"id": id,
|
||||||
"action": "cookies_set",
|
"action": "cookies_set",
|
||||||
"cookies": cookies,
|
"cookies": cookies,
|
||||||
}));
|
}))
|
||||||
}
|
}
|
||||||
"set" => {
|
"set" => {
|
||||||
// --curl <file> mode: import cookies from a JSON array,
|
// --curl <file> mode: import cookies from a JSON array,
|
||||||
|
|||||||
Reference in New Issue
Block a user