chore: Rust 1.84 linting

This commit is contained in:
Jack Wills
2025-01-09 16:40:17 +00:00
parent bc47e2f6e5
commit 3065265e26
3 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ impl CliArgs {
/// An ENV is set in the ./containerised/Dockerfile, if this is ENV found, then sleep for 250ms, else the container, for as yet unknown reasons, will close immediately
/// returns a bool, so that the `update_all_containers()` won't bother to check the entry point unless running via a container
fn check_if_in_container() -> bool {
std::env::var(ENV_KEY).map_or(false, |i| i == ENV_VALUE)
std::env::var(ENV_KEY).is_ok_and(|i| i == ENV_VALUE)
}
/// Parse cli arguments