fix: nhnr.io test failure #810
Annotations
13 warnings
|
this can be `std::io::Error::other(_)`:
bin/nanocl/src/utils/docker.rs#L267
warning: this can be `std::io::Error::other(_)`
--> bin/nanocl/src/utils/docker.rs:267:5
|
267 | std::io::Error::new(std::io::ErrorKind::Other, "Could not get $HOME")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error
help: use `std::io::Error::other`
|
267 - std::io::Error::new(std::io::ErrorKind::Other, "Could not get $HOME")
267 + std::io::Error::other("Could not get $HOME")
|
|
|
this can be `std::io::Error::other(_)`:
bin/nanocl/src/utils/context.rs#L82
warning: this can be `std::io::Error::other(_)`
--> bin/nanocl/src/utils/context.rs:82:7
|
82 | std::io::Error::new(std::io::ErrorKind::Other, "Could not get $HOME")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error
help: use `std::io::Error::other`
|
82 - std::io::Error::new(std::io::ErrorKind::Other, "Could not get $HOME")
82 + std::io::Error::other("Could not get $HOME")
|
|
|
this can be `std::io::Error::other(_)`:
bin/nanocl/src/utils/context.rs#L64
warning: this can be `std::io::Error::other(_)`
--> bin/nanocl/src/utils/context.rs:64:7
|
64 | std::io::Error::new(std::io::ErrorKind::Other, "Could not get $HOME")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error
help: use `std::io::Error::other`
|
64 - std::io::Error::new(std::io::ErrorKind::Other, "Could not get $HOME")
64 + std::io::Error::other("Could not get $HOME")
|
|
|
this can be `std::io::Error::other(_)`:
bin/nanocl/src/utils/context.rs#L48
warning: this can be `std::io::Error::other(_)`
--> bin/nanocl/src/utils/context.rs:48:7
|
48 | std::io::Error::new(std::io::ErrorKind::Other, "Could not get $HOME")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error
help: use `std::io::Error::other`
|
48 - std::io::Error::new(std::io::ErrorKind::Other, "Could not get $HOME")
48 + std::io::Error::other("Could not get $HOME")
|
|
|
this can be `std::io::Error::other(_)`:
bin/nanocl/src/utils/context.rs#L38
warning: this can be `std::io::Error::other(_)`
--> bin/nanocl/src/utils/context.rs:38:7
|
38 | std::io::Error::new(std::io::ErrorKind::Other, "Could not get $HOME")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error
help: use `std::io::Error::other`
|
38 - std::io::Error::new(std::io::ErrorKind::Other, "Could not get $HOME")
38 + std::io::Error::other("Could not get $HOME")
|
|
|
this can be `std::io::Error::other(_)`:
bin/nanocl/src/utils/context.rs#L16
warning: this can be `std::io::Error::other(_)`
--> bin/nanocl/src/utils/context.rs:16:7
|
16 | std::io::Error::new(std::io::ErrorKind::Other, "Could not get $HOME")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error
help: use `std::io::Error::other`
|
16 - std::io::Error::new(std::io::ErrorKind::Other, "Could not get $HOME")
16 + std::io::Error::other("Could not get $HOME")
|
|
|
this can be `std::io::Error::other(_)`:
bin/nanocl/src/commands/vm.rs#L238
warning: this can be `std::io::Error::other(_)`
--> bin/nanocl/src/commands/vm.rs:238:24
|
238 | .map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error
= note: `#[warn(clippy::io_other_error)]` on by default
help: use `std::io::Error::other`
|
238 - .map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))?;
238 + .map_err(|e| std::io::Error::other(e))?;
|
|
|
this can be `std::io::Error::other(_)`:
bin/nanocld/src/utils/server.rs#L91
warning: this can be `std::io::Error::other(_)`
--> bin/nanocld/src/utils/server.rs:91:18
|
91 | return Err(std::io::Error::new(
| __________________^
92 | | std::io::ErrorKind::Other,
93 | | "invalid protocol [tcp:// | unix://] allowed",
94 | | ));
| |_______^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error
= note: `#[warn(clippy::io_other_error)]` on by default
help: use `std::io::Error::other`
|
91 ~ return Err(std::io::Error::other(
92 ~ "invalid protocol [tcp:// | unix://] allowed",
|
|
|
this can be `std::io::Error::other(_)`:
crates/nanocl_error/src/io.rs#L69
warning: this can be `std::io::Error::other(_)`
--> crates/nanocl_error/src/io.rs:69:7
|
69 | std::io::Error::new(std::io::ErrorKind::Other, message.to_string()),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error
= note: `#[warn(clippy::io_other_error)]` on by default
help: use `std::io::Error::other`
|
69 - std::io::Error::new(std::io::ErrorKind::Other, message.to_string()),
69 + std::io::Error::other(message.to_string()),
|
|
|
this can be `std::io::Error::other(_)`:
crates/nanocl_utils/src/unix/network.rs#L79
warning: this can be `std::io::Error::other(_)`
--> crates/nanocl_utils/src/unix/network.rs:79:20
|
79 | .map_err(|err| Error::new(std::io::ErrorKind::Other, err))?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error
help: use `std::io::Error::other`
|
79 - .map_err(|err| Error::new(std::io::ErrorKind::Other, err))?;
79 + .map_err(|err| Error::other(err))?;
|
|
|
this can be `std::io::Error::other(_)`:
crates/nanocl_utils/src/unix/network.rs#L50
warning: this can be `std::io::Error::other(_)`
--> crates/nanocl_utils/src/unix/network.rs:50:22
|
50 | .map_err(|err| Error::new(std::io::ErrorKind::Other, err))?
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error
= note: `#[warn(clippy::io_other_error)]` on by default
help: use `std::io::Error::other`
|
50 - .map_err(|err| Error::new(std::io::ErrorKind::Other, err))?
50 + .map_err(|err| Error::other(err))?
|
|
|
this can be `std::io::Error::other(_)`:
crates/nanocl_error/src/io.rs#L69
warning: this can be `std::io::Error::other(_)`
--> crates/nanocl_error/src/io.rs:69:7
|
69 | std::io::Error::new(std::io::ErrorKind::Other, message.to_string()),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error
= note: `#[warn(clippy::io_other_error)]` on by default
help: use `std::io::Error::other`
|
69 - std::io::Error::new(std::io::ErrorKind::Other, message.to_string()),
69 + std::io::Error::other(message.to_string()),
|
|
|
this can be `std::io::Error::other(_)`:
crates/nanocl_utils/src/build_tools.rs#L24
warning: this can be `std::io::Error::other(_)`
--> crates/nanocl_utils/src/build_tools.rs:24:18
|
24 | .map_err(|e| Error::new(ErrorKind::Other, e))?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error
= note: `#[warn(clippy::io_other_error)]` on by default
help: use `std::io::Error::other`
|
24 - .map_err(|e| Error::new(ErrorKind::Other, e))?;
24 + .map_err(|e| Error::other(e))?;
|
|