forked from rojo-rbx/rojo
Fix or_fun clippy lint
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user