bumb dependencies

This commit is contained in:
Robin Appelman 2022-06-24 16:22:24 +02:00
commit d38a7ff0e5
4 changed files with 308 additions and 333 deletions

637
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -2,10 +2,10 @@
name = "palantir"
version = "0.1.0"
authors = ["Robin Appelman <robin@icewind.nl>"]
edition = "2018"
edition = "2021"
[dependencies]
color-eyre = "0.5"
color-eyre = "0.6.1"
warp = "0.3"
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
ctrlc = { version = "3", features = ["termination"] }
@ -15,9 +15,9 @@ once_cell = "1"
hostname = "0.3"
libc = "0.2"
ahash = "0.7"
bollard = "0.11"
bollard = "0.13.0"
futures-util = "0.3"
libmdns = "0.6"
libmdns = "0.7"
[dev-dependencies]
iai = "0.1"

View file

@ -1,5 +1,5 @@
use bollard::container::{Stats, StatsOptions};
use bollard::models::ContainerSummaryInner;
use bollard::models::ContainerSummary;
use bollard::Docker;
use color_eyre::Result;
use futures_util::future::ready;
@ -45,7 +45,7 @@ impl Container {
.ok();
}
fn from(stats: Stats, container: ContainerSummaryInner) -> Self {
fn from(stats: Stats, container: ContainerSummary) -> Self {
Container {
name: stats.name,
image: container.image.unwrap_or_default(),

View file

@ -22,7 +22,7 @@ impl IntoIterator for Temperatures {
type IntoIter = IntoIter<Self::Item, 2>;
fn into_iter(self) -> Self::IntoIter {
IntoIter::new([("cpu", self.cpu), ("gpu", self.gpu)])
[("cpu", self.cpu), ("gpu", self.gpu)].into_iter()
}
}