Skip to content

feat: base cli commands #1027

feat: base cli commands

feat: base cli commands #1027

Triggered via push September 17, 2025 18:58
Status Failure
Total duration 4m 54s
Artifacts

check.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

4 errors
`?` operator has incompatible types: cli/src/store.rs#L245
error[E0308]: `?` operator has incompatible types --> cli/src/store.rs:245:5 | 240 | fn encrypt_data(password: &str, data: impl AsRef<[u8]>) -> anyhow::Result<Vec<u8>> { | ----------------------- expected `std::result::Result<std::vec::Vec<u8>, anyhow::Error>` because of return type ... 245 | / nacl::secret_box::format_wn::pack(data.as_ref(), &nonce[..], &key[..]) 246 | | .map_err(|err| anyhow!("nacl error: {err:?}"))? | |_______________________________________________________^ expected `Result<Vec<u8>, Error>`, found `Vec<u8>` | = note: `?` operator cannot convert from `std::vec::Vec<_>` to `std::result::Result<std::vec::Vec<_>, anyhow::Error>` = note: expected enum `std::result::Result<std::vec::Vec<_>, anyhow::Error>` found struct `std::vec::Vec<_>` help: try removing this `?` | 246 - .map_err(|err| anyhow!("nacl error: {err:?}"))? 246 + .map_err(|err| anyhow!("nacl error: {err:?}")) | help: try wrapping the expression in `Ok` | 245 ~ Ok(nacl::secret_box::format_wn::pack(data.as_ref(), &nonce[..], &key[..]) 246 ~ .map_err(|err| anyhow!("nacl error: {err:?}"))?) |
mismatched types: cli/src/store.rs#L190
error[E0308]: mismatched types --> cli/src/store.rs:190:9 | 190 | seed_hex, | ^^^^^^^^ expected `Option<String>`, found `Option<&str>` | = note: expected enum `std::option::Option<std::string::String>` found enum `std::option::Option<&str>`
constants have by default a `'static` lifetime: cli/src/store.rs#L16
error: constants have by default a `'static` lifetime --> cli/src/store.rs:16:23 | 16 | const CONFIG_FOLDER: &'static str = ".torus"; | -^^^^^^^---- help: consider removing `'static`: `&str` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes = note: `-D clippy::redundant-static-lifetimes` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::redundant_static_lifetimes)]`
check
Clippy had exited with the 101 exit code