update workflow #59
Annotations
15 warnings
accessing first element with `state
.config
.hosts.get(0)`:
bin/nanocld/src/utils/job.rs#L34
warning: accessing first element with `state
.config
.hosts.get(0)`
--> bin/nanocld/src/utils/job.rs:34:14
|
34 | let host = state
| ______________^
35 | | .config
36 | | .hosts
37 | | .get(0)
| |___________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
help: try
|
34 ~ let host = state
35 + .config
36 + .hosts.first()
|
|
accessing first element with `ipam_config.get(0)`:
bin/nanocld/src/utils/namespace.rs#L103
warning: accessing first element with `ipam_config.get(0)`
--> bin/nanocld/src/utils/namespace.rs:103:19
|
103 | let gateway = ipam_config
| ___________________^
104 | | .get(0)
| |_____________^ help: try: `ipam_config.first()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
= note: `#[warn(clippy::get_first)]` on by default
|
accessing first element with `value
.repo_tags.get(0)`:
bin/nanocl/src/models/cargo_image.rs#L124
warning: accessing first element with `value
.repo_tags.get(0)`
--> bin/nanocl/src/models/cargo_image.rs:124:19
|
124 | let binding = value
| ___________________^
125 | | .repo_tags
126 | | .get(0)
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
= note: `#[warn(clippy::get_first)]` on by default
help: try
|
124 ~ let binding = value
125 + .repo_tags.first()
|
|
accessing first element with `event.paths.get(0)`:
bin/ncproxy/src/subsystem/metric.rs#L124
warning: accessing first element with `event.paths.get(0)`
--> bin/ncproxy/src/subsystem/metric.rs:124:19
|
124 | let path = &event.paths.get(0);
| ^^^^^^^^^^^^^^^^^^ help: try: `event.paths.first()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
|
accessing first element with `ipam_config.get(0)`:
bin/ncproxy/src/utils/rule.rs#L35
warning: accessing first element with `ipam_config.get(0)`
--> bin/ncproxy/src/utils/rule.rs:35:21
|
35 | let ipam_config = ipam_config
| _____________________^
36 | | .get(0)
| |___________^ help: try: `ipam_config.first()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
= note: `#[warn(clippy::get_first)]` on by default
|
accessing first element with `configs.get(0)`:
bin/ncdns/src/utils.rs#L19
warning: accessing first element with `configs.get(0)`
--> bin/ncdns/src/utils.rs:19:16
|
19 | let config = configs.get(0).ok_or(IoError::not_found(
| ^^^^^^^^^^^^^^ help: try: `configs.first()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
= note: `#[warn(clippy::get_first)]` on by default
|
accessing first element with `value
.repo_tags.get(0)`:
bin/nanocl/./src/models/cargo_image.rs#L124
warning: accessing first element with `value
.repo_tags.get(0)`
--> bin/nanocl/./src/models/cargo_image.rs:124:19
|
124 | let binding = value
| ___________________^
125 | | .repo_tags
126 | | .get(0)
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
= note: `#[warn(clippy::get_first)]` on by default
help: try
|
124 ~ let binding = value
125 + .repo_tags.first()
|
|
accessing first element with `value
.repo_tags.get(0)`:
bin/nanocl/src/models/cargo_image.rs#L124
warning: accessing first element with `value
.repo_tags.get(0)`
--> bin/nanocl/src/models/cargo_image.rs:124:19
|
124 | let binding = value
| ___________________^
125 | | .repo_tags
126 | | .get(0)
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
= note: `#[warn(clippy::get_first)]` on by default
help: try
|
124 ~ let binding = value
125 + .repo_tags.first()
|
|
accessing first element with `state
.config
.hosts.get(0)`:
bin/nanocld/src/utils/job.rs#L34
warning: accessing first element with `state
.config
.hosts.get(0)`
--> bin/nanocld/src/utils/job.rs:34:14
|
34 | let host = state
| ______________^
35 | | .config
36 | | .hosts
37 | | .get(0)
| |___________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
help: try
|
34 ~ let host = state
35 + .config
36 + .hosts.first()
|
|
accessing first element with `ipam_config.get(0)`:
bin/nanocld/src/utils/namespace.rs#L103
warning: accessing first element with `ipam_config.get(0)`
--> bin/nanocld/src/utils/namespace.rs:103:19
|
103 | let gateway = ipam_config
| ___________________^
104 | | .get(0)
| |_____________^ help: try: `ipam_config.first()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
= note: `#[warn(clippy::get_first)]` on by default
|
accessing first element with `event.paths.get(0)`:
bin/ncproxy/src/subsystem/metric.rs#L124
warning: accessing first element with `event.paths.get(0)`
--> bin/ncproxy/src/subsystem/metric.rs:124:19
|
124 | let path = &event.paths.get(0);
| ^^^^^^^^^^^^^^^^^^ help: try: `event.paths.first()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
|
accessing first element with `ipam_config.get(0)`:
bin/ncproxy/src/utils/rule.rs#L35
warning: accessing first element with `ipam_config.get(0)`
--> bin/ncproxy/src/utils/rule.rs:35:21
|
35 | let ipam_config = ipam_config
| _____________________^
36 | | .get(0)
| |___________^ help: try: `ipam_config.first()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
= note: `#[warn(clippy::get_first)]` on by default
|
accessing first element with `configs.get(0)`:
bin/ncdns/src/utils.rs#L19
warning: accessing first element with `configs.get(0)`
--> bin/ncdns/src/utils.rs:19:16
|
19 | let config = configs.get(0).ok_or(IoError::not_found(
| ^^^^^^^^^^^^^^ help: try: `configs.first()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
= note: `#[warn(clippy::get_first)]` on by default
|
unused import: `resource_spec::*`:
bin/nanocld/src/models/mod.rs#L37
warning: unused import: `resource_spec::*`
--> bin/nanocld/src/models/mod.rs:37:9
|
37 | pub use resource_spec::*;
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
accessing first element with `value
.repo_tags.get(0)`:
bin/nanocl/./src/models/cargo_image.rs#L124
warning: accessing first element with `value
.repo_tags.get(0)`
--> bin/nanocl/./src/models/cargo_image.rs:124:19
|
124 | let binding = value
| ___________________^
125 | | .repo_tags
126 | | .get(0)
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
= note: `#[warn(clippy::get_first)]` on by default
help: try
|
124 ~ let binding = value
125 + .repo_tags.first()
|
|