added anyhow for proper error handling #44
Annotations
8 errors and 27 warnings
no method named `move_next` found for struct `parking_lot::lock_api::MutexGuard<'_, parking_lot::RawMutex, std::vec::Vec<std::path::PathBuf>>` in the current scope:
src/main.rs#L119
error[E0599]: no method named `move_next` found for struct `parking_lot::lock_api::MutexGuard<'_, parking_lot::RawMutex, std::vec::Vec<std::path::PathBuf>>` in the current scope
--> src/main.rs:119:24
|
119 | let data = fl_lock.move_next().unwrap();
| ^^^^^^^^^ method not found in `MutexGuard<'_, RawMutex, Vec<PathBuf>>`
|
`parking_lot::lock_api::MutexGuard<'_, parking_lot::RawMutex, std::vec::Vec<std::path::PathBuf>>` is not a future:
src/main.rs#L134
error[E0277]: `parking_lot::lock_api::MutexGuard<'_, parking_lot::RawMutex, std::vec::Vec<std::path::PathBuf>>` is not a future
--> src/main.rs:134:40
|
134 | let mut fl_lock = file_list.lock().await;
| -^^^^^
| ||
| |`parking_lot::lock_api::MutexGuard<'_, parking_lot::RawMutex, std::vec::Vec<std::path::PathBuf>>` is not a future
| help: remove the `.await`
|
= help: the trait `futures::Future` is not implemented for `parking_lot::lock_api::MutexGuard<'_, parking_lot::RawMutex, std::vec::Vec<std::path::PathBuf>>`
= note: parking_lot::lock_api::MutexGuard<'_, parking_lot::RawMutex, std::vec::Vec<std::path::PathBuf>> must be a future or must implement `IntoFuture` to be awaited
= note: required for `parking_lot::lock_api::MutexGuard<'_, parking_lot::RawMutex, std::vec::Vec<std::path::PathBuf>>` to implement `std::future::IntoFuture`
|
cannot find value `file_list_clone` in this scope:
src/main.rs#L68
error[E0425]: cannot find value `file_list_clone` in this scope
--> src/main.rs:68:60
|
68 | tokio::task::spawn_blocking(move || start_pager(pager, file_list_clone.clone()));
| ^^^^^^^^^^^^^^^ not found in this scope
|
Check:
src/main.rs#L68
cannot find value `file_list_clone` in this scope
|
Check:
src/main.rs#L134
`parking_lot::lock_api::MutexGuard<'_, parking_lot::RawMutex, Vec<PathBuf>>` is not a future
|
Check:
src/main.rs#L119
no method named `move_next` found for struct `parking_lot::lock_api::MutexGuard<'_, parking_lot::RawMutex, Vec<PathBuf>>` in the current scope
|
Check
The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
|
Clippy
Clippy had exited with the 101 exit code
|
Rustfmt
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Rustfmt
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
unreachable statement:
src/main.rs#L104
warning: unreachable statement
--> src/main.rs:104:13
|
100 | return InputEvent::Exit;
| ----------------------- any code following this expression is unreachable
...
104 | move_to_next_file(filenames, &pager);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
|
= note: `#[warn(unreachable_code)]` on by default
|
unused import: `task::JoinSet`:
src/main.rs#L15
warning: unused import: `task::JoinSet`
--> src/main.rs:15:5
|
15 | task::JoinSet,
| ^^^^^^^^^^^^^
|
unused import: `anyhow`:
src/main.rs#L8
warning: unused import: `anyhow`
--> src/main.rs:8:14
|
8 | use anyhow::{anyhow, Result};
| ^^^^^^
|
unused import: `collections::BTreeMap`:
src/main.rs#L2
warning: unused import: `collections::BTreeMap`
--> src/main.rs:2:5
|
2 | collections::BTreeMap,
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
Check
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Check:
src/main.rs#L2
unused import: `collections::BTreeMap`
|
Check:
src/main.rs#L8
unused import: `anyhow`
|
Check:
src/main.rs#L15
unused import: `task::JoinSet`
|
Check:
src/main.rs#L104
unreachable statement
|
Check
`rless` (bin "rless") generated 4 warnings
|
Check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Clippy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|