chore: release v0.3.3

This commit is contained in:
Jack Wills
2023-10-21 16:25:42 +00:00
parent 8ecec7869c
commit 09bf70abd2
7 changed files with 36 additions and 28 deletions
+2 -2
View File
@@ -248,7 +248,7 @@ impl PartialEq for CpuStats {
impl PartialOrd for CpuStats {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
Some(self.cmp(other))
Some(self.cmp(other))
}
}
@@ -291,7 +291,7 @@ impl PartialEq for ByteStats {
impl PartialOrd for ByteStats {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
Some(self.cmp(other))
Some(self.cmp(other))
}
}
+4 -1
View File
@@ -569,7 +569,10 @@ impl AppData {
.map_or(false, |i| i.starts_with(ENTRY_POINT));
let state = State::from(i.state.as_ref().map_or("dead", |z| z));
let status = i.status.as_ref().map_or(String::new(), std::clone::Clone::clone);
let status = i
.status
.as_ref()
.map_or(String::new(), std::clone::Clone::clone);
let image = i
.image
+3 -6
View File
@@ -69,12 +69,9 @@ fn check_if_containerised() -> bool {
/// Read the optional docker_host path, the cli args take priority over the DOCKER_HOST env
fn read_docker_host(args: &CliArgs) -> Option<String> {
args.host.as_ref().map_or_else(
|| {
std::env::var(DOCKER_HOST).ok()
},
|x| Some(x.to_string()),
)
args.host
.as_ref()
.map_or_else(|| std::env::var(DOCKER_HOST).ok(), |x| Some(x.to_string()))
}
/// Create docker daemon handler, and only spawn up the docker data handler if a ping returns non-error