chore: Rust linting
This commit is contained in:
@@ -7,6 +7,8 @@ description = "A simple tui to view & control docker containers"
|
|||||||
repository = "https://github.com/mrjackwills/oxker"
|
repository = "https://github.com/mrjackwills/oxker"
|
||||||
homepage = "https://github.com/mrjackwills/oxker"
|
homepage = "https://github.com/mrjackwills/oxker"
|
||||||
license = "MIT"
|
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"
|
readme = "README.md"
|
||||||
keywords = ["docker", "tui", "tokio", "terminal", "podman"]
|
keywords = ["docker", "tui", "tokio", "terminal", "podman"]
|
||||||
categories = ["command-line-utilities"]
|
categories = ["command-line-utilities"]
|
||||||
|
|||||||
+1
-1
@@ -896,7 +896,7 @@ impl AppData {
|
|||||||
if f.starts_with('/') {
|
if f.starts_with('/') {
|
||||||
f.remove(0);
|
f.remove(0);
|
||||||
}
|
}
|
||||||
(*f).to_string()
|
(*f).clone()
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -48,7 +48,7 @@ fn read_docker_host(config: &Config) -> Option<String> {
|
|||||||
config
|
config
|
||||||
.host
|
.host
|
||||||
.as_ref()
|
.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
|
/// Create docker daemon handler, and only spawn up the docker data handler if a ping returns non-error
|
||||||
|
|||||||
Reference in New Issue
Block a user