feat: print config errors for users #62
GitHub Actions / clippy
failed
May 25, 2024 in 0s
clippy
1 error
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 1 |
Warning | 0 |
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 56 in benches/benches.rs
github-actions / clippy
no method named `render_bar` found for enum `std::result::Result` in the current scope
error[E0599]: no method named `render_bar` found for enum `std::result::Result` in the current scope
--> benches/benches.rs:56:33
|
56 | b.iter(|| module_config.render_bar(state.clone(), widgets.clone()))
| ^^^^^^^^^^ method not found in `Result<ModuleConfig, anyError>`
|
note: the method `render_bar` exists on the type `zjstatus::config::ModuleConfig`
--> /home/runner/work/zjstatus/zjstatus/src/config.rs:286:5
|
286 | / pub fn render_bar(
287 | | &mut self,
288 | | state: ZellijState,
289 | | widget_map: BTreeMap<String, Arc<dyn Widget>>,
290 | | ) -> String {
| |_______________^
help: consider using `Result::expect` to unwrap the `zjstatus::config::ModuleConfig` value, panicking if the value is a `Result::Err`
|
56 | b.iter(|| module_config.expect("REASON").render_bar(state.clone(), widgets.clone()))
| +++++++++++++++++
Loading