mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Fix or_fun clippy lint
This commit is contained in:
parent
49e10698b1
commit
4d0dee7ee8
1 changed files with 5 additions and 3 deletions
|
|
@ -39,9 +39,11 @@ pub fn serve(options: &ServeOptions) -> Result<(), ServeError> {
|
||||||
|
|
||||||
let port = options
|
let port = options
|
||||||
.port
|
.port
|
||||||
.or(maybe_project
|
.or_else(|| {
|
||||||
.as_ref()
|
maybe_project
|
||||||
.and_then(|project| project.serve_port))
|
.as_ref()
|
||||||
|
.and_then(|project| project.serve_port)
|
||||||
|
})
|
||||||
.unwrap_or(DEFAULT_PORT);
|
.unwrap_or(DEFAULT_PORT);
|
||||||
|
|
||||||
println!("Rojo server listening on port {}", port);
|
println!("Rojo server listening on port {}", port);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue