Skip to content

added anyhow for proper error handling #44

added anyhow for proper error handling

added anyhow for proper error handling #44

GitHub Actions / Clippy Output failed Feb 26, 2024 in 0s

Clippy Output

3 errors, 4 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 3
Warning 4
Note 0
Help 0

Versions

  • rustc 1.76.0 (07dca489a 2024-02-04)
  • cargo 1.76.0 (c84b36747 2024-01-18)
  • clippy 0.1.76 (07dca48 2024-02-04)

Annotations

Check failure on line 119 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

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

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>>`

Check warning on line 104 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

unreachable statement

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

Check failure on line 134 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

`parking_lot::lock_api::MutexGuard<'_, parking_lot::RawMutex, std::vec::Vec<std::path::PathBuf>>` is not a future

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`

Check warning on line 15 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

unused import: `task::JoinSet`

warning: unused import: `task::JoinSet`
  --> src/main.rs:15:5
   |
15 |     task::JoinSet,
   |     ^^^^^^^^^^^^^

Check warning on line 8 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

unused import: `anyhow`

warning: unused import: `anyhow`
 --> src/main.rs:8:14
  |
8 | use anyhow::{anyhow, Result};
  |              ^^^^^^

Check warning on line 2 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

unused import: `collections::BTreeMap`

warning: unused import: `collections::BTreeMap`
 --> src/main.rs:2:5
  |
2 |     collections::BTreeMap,
  |     ^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

Check failure on line 68 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

cannot find value `file_list_clone` in this scope

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