chore: release v0.3.3
This commit is contained in:
@@ -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
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user