Skip to content
This repository was archived by the owner on Mar 25, 2023. It is now read-only.

Commit 78e45a3

Browse files
author
Shobhit
committed
Clippy happy
1 parent d4ef463 commit 78e45a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ async fn main() -> fpm::Result<()> {
7575
if let Some(mark) = matches.subcommand_matches("serve") {
7676
let port = mark
7777
.value_of("port")
78-
.unwrap_or(mark.value_of("positional_port").unwrap_or("8000"))
78+
.unwrap_or_else(|| mark.value_of("positional_port").unwrap_or("8000"))
7979
.to_string();
8080
let bind = mark.value_of("bind").unwrap_or("127.0.0.1").to_string();
8181
tokio::task::spawn_blocking(move || {

0 commit comments

Comments
 (0)