mirror of
https://codeberg.org/icewind/palantir.git
synced 2026-06-03 18:24:08 +02:00
bumb dependencies
This commit is contained in:
parent
0f003cd8af
commit
d38a7ff0e5
4 changed files with 308 additions and 333 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue