fix err fn

This commit is contained in:
Aiden McClelland
2021-07-03 11:29:11 -06:00
parent dc24f147c0
commit 9f60054625
2 changed files with 13 additions and 13 deletions

View File

@@ -203,7 +203,6 @@ fn cli_example() {
matches => AppState { seed: Arc::new(ConfigSeed {
host: Host::parse(matches.value_of("host").unwrap_or("localhost")).unwrap(),
port: matches.value_of("port").unwrap_or("8000").parse().unwrap(),
}), data: () },
|code| if code < 0 { 1 } else { code }
}), data: () }
)
}