Skip to content

feat: add support for listing volumes #97

feat: add support for listing volumes

feat: add support for listing volumes #97

Triggered via pull request July 11, 2024 20:28
Status Failure
Total duration 1m 0s
Artifacts

check.yml

on: pull_request
check  /  ...  /  fmt
6s
check / stable / fmt
check  /  ...  /  doc
43s
check / nightly / doc
check  /  ...  /  check
45s
check / 1.78.0 / check
Matrix: check / clippy
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 16 warnings
mismatched types: src/docker/volume.rs#L20
error[E0308]: mismatched types --> src/docker/volume.rs:20:70 | 20 | pub async fn list(docker: &bollard::Docker) -> Result<Vec<Self>> {} | ^^ expected `Result<Vec<DockerVolume>, Report>`, found `()` | = note: expected enum `std::result::Result<std::vec::Vec<docker::volume::DockerVolume>, color_eyre::Report>` found unit type `()`
check / beta / clippy
Clippy has exited with exit code 101
check / 1.78.0 / check
Process completed with exit code 101.
mismatched types: src/docker/volume.rs#L20
error[E0308]: mismatched types --> src/docker/volume.rs:20:70 | 20 | pub async fn list(docker: &bollard::Docker) -> Result<Vec<Self>> {} | ^^ expected `Result<Vec<DockerVolume>, Report>`, found `()` | = note: expected enum `std::result::Result<std::vec::Vec<docker::volume::DockerVolume>, color_eyre::Report>` found unit type `()`
check / stable / clippy
Clippy has exited with exit code 101
unused imports: `ListContainersOptions`, `RemoveContainerOptions`: src/docker/volume.rs#L1
warning: unused imports: `ListContainersOptions`, `RemoveContainerOptions` --> src/docker/volume.rs:1:26 | 1 | use bollard::container::{ListContainersOptions, RemoveContainerOptions}; | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
unused import: `chrono::prelude::DateTime`: src/docker/volume.rs#L2
warning: unused import: `chrono::prelude::DateTime` --> src/docker/volume.rs:2:5 | 2 | use chrono::prelude::DateTime; | ^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `chrono::Local`: src/docker/volume.rs#L3
warning: unused import: `chrono::Local` --> src/docker/volume.rs:3:5 | 3 | use chrono::Local; | ^^^^^^^^^^^^^
unused imports: `Context`, `bail`: src/docker/volume.rs#L4
warning: unused imports: `Context`, `bail` --> src/docker/volume.rs:4:24 | 4 | use color_eyre::eyre::{bail, Context, Result}; | ^^^^ ^^^^^^^
unused imports: `Duration`, `UNIX_EPOCH`, `collections::HashMap`: src/docker/volume.rs#L7
warning: unused imports: `Duration`, `UNIX_EPOCH`, `collections::HashMap` --> src/docker/volume.rs:7:5 | 7 | collections::HashMap, | ^^^^^^^^^^^^^^^^^^^^ 8 | time::{Duration, UNIX_EPOCH}, | ^^^^^^^^ ^^^^^^^^^^
unused import: `tokio::process::Command`: src/docker/volume.rs#L10
warning: unused import: `tokio::process::Command` --> src/docker/volume.rs:10:5 | 10 | use tokio::process::Command; | ^^^^^^^^^^^^^^^^^^^^^^^
unused import: `bollard::secret::ContainerSummary`: src/docker/volume.rs#L12
warning: unused import: `bollard::secret::ContainerSummary` --> src/docker/volume.rs:12:5 | 12 | use bollard::secret::ContainerSummary; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `super::traits::Describe`: src/docker/volume.rs#L14
warning: unused import: `super::traits::Describe` --> src/docker/volume.rs:14:5 | 14 | use super::traits::Describe; | ^^^^^^^^^^^^^^^^^^^^^^^
unused imports: `ListContainersOptions`, `RemoveContainerOptions`: src/docker/volume.rs#L1
warning: unused imports: `ListContainersOptions`, `RemoveContainerOptions` --> src/docker/volume.rs:1:26 | 1 | use bollard::container::{ListContainersOptions, RemoveContainerOptions}; | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
unused import: `chrono::prelude::DateTime`: src/docker/volume.rs#L2
warning: unused import: `chrono::prelude::DateTime` --> src/docker/volume.rs:2:5 | 2 | use chrono::prelude::DateTime; | ^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `chrono::Local`: src/docker/volume.rs#L3
warning: unused import: `chrono::Local` --> src/docker/volume.rs:3:5 | 3 | use chrono::Local; | ^^^^^^^^^^^^^
unused imports: `Context`, `bail`: src/docker/volume.rs#L4
warning: unused imports: `Context`, `bail` --> src/docker/volume.rs:4:24 | 4 | use color_eyre::eyre::{bail, Context, Result}; | ^^^^ ^^^^^^^
unused imports: `Duration`, `UNIX_EPOCH`, `collections::HashMap`: src/docker/volume.rs#L7
warning: unused imports: `Duration`, `UNIX_EPOCH`, `collections::HashMap` --> src/docker/volume.rs:7:5 | 7 | collections::HashMap, | ^^^^^^^^^^^^^^^^^^^^ 8 | time::{Duration, UNIX_EPOCH}, | ^^^^^^^^ ^^^^^^^^^^
unused import: `tokio::process::Command`: src/docker/volume.rs#L10
warning: unused import: `tokio::process::Command` --> src/docker/volume.rs:10:5 | 10 | use tokio::process::Command; | ^^^^^^^^^^^^^^^^^^^^^^^
unused import: `bollard::secret::ContainerSummary`: src/docker/volume.rs#L12
warning: unused import: `bollard::secret::ContainerSummary` --> src/docker/volume.rs:12:5 | 12 | use bollard::secret::ContainerSummary; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `super::traits::Describe`: src/docker/volume.rs#L14
warning: unused import: `super::traits::Describe` --> src/docker/volume.rs:14:5 | 14 | use super::traits::Describe; | ^^^^^^^^^^^^^^^^^^^^^^^