chore: Rust linting

This commit is contained in:
Jack Wills
2025-12-09 09:42:50 +00:00
parent 38dcc65973
commit 65d7970033
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -7,6 +7,8 @@ description = "A simple tui to view & control docker containers"
repository = "https://github.com/mrjackwills/oxker"
homepage = "https://github.com/mrjackwills/oxker"
license = "MIT"
# This is stuck to whatever version cargo-zigbuild is using - https://github.com/rust-cross/cargo-zigbuild/blob/main/Dockerfile
rust-version = "1.87.0"
readme = "README.md"
keywords = ["docker", "tui", "tokio", "terminal", "podman"]
categories = ["command-line-utilities"]
+1 -1
View File
@@ -896,7 +896,7 @@ impl AppData {
if f.starts_with('/') {
f.remove(0);
}
(*f).to_string()
(*f).clone()
})
});
+1 -1
View File
@@ -48,7 +48,7 @@ fn read_docker_host(config: &Config) -> Option<String> {
config
.host
.as_ref()
.map_or_else(|| std::env::var(DOCKER_HOST).ok(), |x| Some(x.to_string()))
.map_or_else(|| std::env::var(DOCKER_HOST).ok(), |x| Some(x.clone()))
}
/// Create docker daemon handler, and only spawn up the docker data handler if a ping returns non-error