feat: add ability for more detailed container description and stats #27
check.yml
on: pull_request
check
/
...
/
fmt
6s
check
/
...
/
doc
43s
check
/
...
/
check
46s
Matrix: check / clippy
Annotations
11 errors and 8 warnings
mismatched types:
src/pages/describe_container.rs#L79
error[E0308]: mismatched types
--> src/pages/describe_container.rs:79:35
|
79 | self.container = Some(container);
| ---- ^^^^^^^^^ expected `VerboseDockerContainer`, found `DockerContainer`
| |
| arguments to this enum variant are incorrect
|
help: the type constructed contains `docker::container::DockerContainer` due to the type of the argument passed
--> src/pages/describe_container.rs:79:30
|
79 | self.container = Some(container);
| ^^^^^---------^
| |
| this argument influences the type of `Some`
note: tuple variant defined here
--> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/option.rs:579:5
|
mismatched types:
src/pages/describe_container.rs#L81
error[E0308]: mismatched types
--> src/pages/describe_container.rs:81:62
|
81 | if let Ok(summary) = serde_yml::to_string(&self..container) {
| ^^^^^^^^^ expected `&&mut DescribeContainer`, found `DockerContainer`
|
mismatched types:
src/pages/describe_container.rs#L81
error[E0308]: mismatched types
--> src/pages/describe_container.rs:81:55
|
81 | if let Ok(summary) = serde_yml::to_string(&self..container) {
| -------------------- ^^^^^^^^^^^^^^^^ expected `&_`, found `Range<&&mut DescribeContainer>`
| |
| arguments to this function are incorrect
|
= note: expected reference `&_`
found struct `std::ops::Range<&&mut pages::describe_container::DescribeContainer>`
note: function defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde_yml-0.0.10/src/ser.rs:789:8
|
789 | pub fn to_string<T>(value: &T) -> Result<String>
| ^^^^^^^^^
help: consider borrowing here
|
81 | if let Ok(summary) = serde_yml::to_string(&(&self..container)) {
| ++ +
|
mismatched types:
src/pages/describe_container.rs#L60
error[E0308]: mismatched types
--> src/pages/describe_container.rs:60:47
|
60 | ... docker_container: self.container.clone(),
| ^^^^^^^^^^^^^^^^^^^^^^ expected `Option<DockerContainer>`, found `Option<VerboseDockerContainer>`
|
= note: expected enum `std::option::Option<docker::container::DockerContainer>`
found enum `std::option::Option<docker::container::VerboseDockerContainer>`
|
check / stable / clippy
Clippy has exited with exit code 101
|
check / 1.78.0 / check
Process completed with exit code 101.
|
mismatched types:
src/pages/describe_container.rs#L79
error[E0308]: mismatched types
--> src/pages/describe_container.rs:79:35
|
79 | self.container = Some(container);
| ---- ^^^^^^^^^ expected `VerboseDockerContainer`, found `DockerContainer`
| |
| arguments to this enum variant are incorrect
|
help: the type constructed contains `docker::container::DockerContainer` due to the type of the argument passed
--> src/pages/describe_container.rs:79:30
|
79 | self.container = Some(container);
| ^^^^^---------^
| |
| this argument influences the type of `Some`
note: tuple variant defined here
--> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/option.rs:579:5
|
mismatched types:
src/pages/describe_container.rs#L81
error[E0308]: mismatched types
--> src/pages/describe_container.rs:81:62
|
81 | if let Ok(summary) = serde_yml::to_string(&self..container) {
| ^^^^^^^^^ expected `&&mut DescribeContainer`, found `DockerContainer`
|
mismatched types:
src/pages/describe_container.rs#L81
error[E0308]: mismatched types
--> src/pages/describe_container.rs:81:55
|
81 | if let Ok(summary) = serde_yml::to_string(&self..container) {
| -------------------- ^^^^^^^^^^^^^^^^ expected `&_`, found `Range<&&mut DescribeContainer>`
| |
| arguments to this function are incorrect
|
= note: expected reference `&_`
found struct `std::ops::Range<&&mut pages::describe_container::DescribeContainer>`
note: function defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde_yml-0.0.10/src/ser.rs:789:8
|
789 | pub fn to_string<T>(value: &T) -> Result<String>
| ^^^^^^^^^
help: consider borrowing here
|
81 | if let Ok(summary) = serde_yml::to_string(&(&self..container)) {
| ++ +
|
mismatched types:
src/pages/describe_container.rs#L60
error[E0308]: mismatched types
--> src/pages/describe_container.rs:60:47
|
60 | ... docker_container: self.container.clone(),
| ^^^^^^^^^^^^^^^^^^^^^^ expected `Option<DockerContainer>`, found `Option<VerboseDockerContainer>`
|
= note: expected enum `std::option::Option<docker::container::DockerContainer>`
found enum `std::option::Option<docker::container::VerboseDockerContainer>`
|
check / beta / clippy
Clippy has exited with exit code 101
|
unused import: `crossterm::terminal::disable_raw_mode`:
src/pages/describe_container.rs#L4
warning: unused import: `crossterm::terminal::disable_raw_mode`
--> src/pages/describe_container.rs:4:5
|
4 | use crossterm::terminal::disable_raw_mode;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
unused import: `crate::events::message`:
src/pages/describe_container.rs#L15
warning: unused import: `crate::events::message`
--> src/pages/describe_container.rs:15:5
|
15 | use crate::events::message;
| ^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `docker::container::DockerContainer`:
src/pages/describe_container.rs#L18
warning: unused import: `docker::container::DockerContainer`
--> src/pages/describe_container.rs:18:5
|
18 | docker::container::DockerContainer,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused variable: `docker`:
src/docker/container.rs#L133
warning: unused variable: `docker`
--> src/docker/container.rs:133:29
|
133 | pub async fn get(&self, docker: &bollard::Docker) -> Result<VerboseDockerContainer> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_docker`
|
= note: `#[warn(unused_variables)]` on by default
|
unused import: `crossterm::terminal::disable_raw_mode`:
src/pages/describe_container.rs#L4
warning: unused import: `crossterm::terminal::disable_raw_mode`
--> src/pages/describe_container.rs:4:5
|
4 | use crossterm::terminal::disable_raw_mode;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
unused import: `crate::events::message`:
src/pages/describe_container.rs#L15
warning: unused import: `crate::events::message`
--> src/pages/describe_container.rs:15:5
|
15 | use crate::events::message;
| ^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `docker::container::DockerContainer`:
src/pages/describe_container.rs#L18
warning: unused import: `docker::container::DockerContainer`
--> src/pages/describe_container.rs:18:5
|
18 | docker::container::DockerContainer,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused variable: `docker`:
src/docker/container.rs#L133
warning: unused variable: `docker`
--> src/docker/container.rs:133:29
|
133 | pub async fn get(&self, docker: &bollard::Docker) -> Result<VerboseDockerContainer> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_docker`
|
= note: `#[warn(unused_variables)]` on by default
|