Skip to content

Commit 17ab728

Browse files
runningcodeclaude
andcommitted
fix: Remove redundant closure in PR number detection
Fixes clippy warning by removing unnecessary closure wrapper around get_default_pr_number function call. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 3353ca8 commit 17ab728

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/build/upload.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
196196
let pr_number = matches
197197
.get_one::<u32>("pr_number")
198198
.copied()
199-
.or_else(|| get_default_pr_number());
199+
.or_else(get_default_pr_number);
200200

201201
let build_configuration = matches.get_one("build_configuration").map(String::as_str);
202202
let release_notes = matches.get_one("release_notes").map(String::as_str);

0 commit comments

Comments
 (0)