change erroneous port string naming in closure
This commit is contained in:
parent
27dd021e4e
commit
1371a6521d
|
@ -5,7 +5,7 @@ use std::error::Error;
|
|||
async fn main() -> Result<(), Box<dyn Error>> {
|
||||
swabd::serve(
|
||||
env::var("SWABD_PORT")
|
||||
.map(|tz| tz.parse::<i32>().unwrap())
|
||||
.map(|port| port.parse::<i32>().unwrap())
|
||||
.ok(),
|
||||
env::var("SWABD_TZ").ok(),
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue