change erroneous port string naming in closure

This commit is contained in:
mos 2024-03-28 20:40:31 +01:00
parent 27dd021e4e
commit 1371a6521d
1 changed files with 1 additions and 1 deletions

View File

@ -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(),
)