feat: add ability for more detailed container description and stats #28
check.yml
on: pull_request
check
/
...
/
fmt
10s
check
/
...
/
doc
44s
check
/
...
/
check
41s
Matrix: check / clippy
Annotations
18 warnings
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
|
constant `ESC_KEY` is never used:
src/pages/describe_container.rs#L23
warning: constant `ESC_KEY` is never used
--> src/pages/describe_container.rs:23:7
|
23 | const ESC_KEY: Key = Key::Esc;
| ^^^^^^^
|
field `config` is never read:
src/pages/describe_container.rs#L28
warning: field `config` is never read
--> src/pages/describe_container.rs:28:5
|
26 | pub struct DescribeContainer {
| ----------------- field in this struct
27 | docker: Docker,
28 | config: Box<Config>,
| ^^^^^^
|
= note: `DescribeContainer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
unused variable: `docker`:
src/docker/container.rs#L133
warning: unused variable: `docker`
--> src/docker/container.rs:133:45
|
133 | pub async fn populate_verbose(mut self, docker: &bollard::Docker) -> Result<Self> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_docker`
|
= note: `#[warn(unused_variables)]` on by default
|
variable does not need to be mutable:
src/docker/container.rs#L133
warning: variable does not need to be mutable
--> src/docker/container.rs:133:35
|
133 | pub async fn populate_verbose(mut self, docker: &bollard::Docker) -> Result<Self> {
| ----^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
|
field `0` is never read:
src/events/message.rs#L6
warning: field `0` is never read
--> src/events/message.rs:6:11
|
6 | Error(String),
| ----- ^^^^^^
| |
| field in this variant
|
= note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
6 | Error(()),
| ~~
|
field `name` is never read:
src/pages/containers.rs#L54
warning: field `name` is never read
--> src/pages/containers.rs:54:9
|
52 | pub struct Containers {
| ---------- field in this struct
53 | config: Box<Config>,
54 | pub name: String,
| ^^^^
|
= note: `Containers` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
field `name` is never read:
src/pages/images.rs#L49
warning: field `name` is never read
--> src/pages/images.rs:49:9
|
48 | pub struct Images {
| ------ field in this struct
49 | pub name: String,
| ^^^^
|
= note: `Images` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
field `discriminator` is never read:
src/components/alert_modal.rs#L27
warning: field `discriminator` is never read
--> src/components/alert_modal.rs:27:9
|
26 | pub struct AlertModal<P> {
| ---------- field in this struct
27 | pub discriminator: P,
| ^^^^^^^^^^^^^
|
= note: `AlertModal` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
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
|
constant `ESC_KEY` is never used:
src/pages/describe_container.rs#L23
warning: constant `ESC_KEY` is never used
--> src/pages/describe_container.rs:23:7
|
23 | const ESC_KEY: Key = Key::Esc;
| ^^^^^^^
|
field `config` is never read:
src/pages/describe_container.rs#L28
warning: field `config` is never read
--> src/pages/describe_container.rs:28:5
|
26 | pub struct DescribeContainer {
| ----------------- field in this struct
27 | docker: Docker,
28 | config: Box<Config>,
| ^^^^^^
|
= note: `DescribeContainer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
unused variable: `docker`:
src/docker/container.rs#L133
warning: unused variable: `docker`
--> src/docker/container.rs:133:45
|
133 | pub async fn populate_verbose(mut self, docker: &bollard::Docker) -> Result<Self> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_docker`
|
= note: `#[warn(unused_variables)]` on by default
|
variable does not need to be mutable:
src/docker/container.rs#L133
warning: variable does not need to be mutable
--> src/docker/container.rs:133:35
|
133 | pub async fn populate_verbose(mut self, docker: &bollard::Docker) -> Result<Self> {
| ----^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
|
field `0` is never read:
src/events/message.rs#L6
warning: field `0` is never read
--> src/events/message.rs:6:11
|
6 | Error(String),
| ----- ^^^^^^
| |
| field in this variant
|
= note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
6 | Error(()),
| ~~
|
field `name` is never read:
src/pages/containers.rs#L54
warning: field `name` is never read
--> src/pages/containers.rs:54:9
|
52 | pub struct Containers {
| ---------- field in this struct
53 | config: Box<Config>,
54 | pub name: String,
| ^^^^
|
= note: `Containers` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
field `name` is never read:
src/pages/images.rs#L49
warning: field `name` is never read
--> src/pages/images.rs:49:9
|
48 | pub struct Images {
| ------ field in this struct
49 | pub name: String,
| ^^^^
|
= note: `Images` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
field `discriminator` is never read:
src/components/alert_modal.rs#L27
warning: field `discriminator` is never read
--> src/components/alert_modal.rs:27:9
|
26 | pub struct AlertModal<P> {
| ---------- field in this struct
27 | pub discriminator: P,
| ^^^^^^^^^^^^^
|
= note: `AlertModal` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|