fix failed pre-commit checks
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-02-08 18:01:42 +01:00
parent 9971b46e9e
commit 6707e7e403
2 changed files with 2 additions and 4 deletions

View File

@@ -6,4 +6,3 @@
# sleep 10
/home/home4/institut_1b/jheuel/repositories/zoidberg/target/release/zoidberg_client

View File

@@ -155,9 +155,8 @@ async fn main() -> Result<(), Box<dyn Error>> {
std::process::exit(1);
});
let server = std::env::var("ZOIDBERG_SERVER").unwrap_or_else(|_| {
String::from(matches.value_of("server").unwrap())
});
let server = std::env::var("ZOIDBERG_SERVER")
.unwrap_or_else(|_| String::from(matches.value_of("server").unwrap()));
let client = Arc::new(
Worker::new(&server, &secret, threads)