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

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()
}
}