GitHub Actions / clippy
failed
Feb 2, 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.75.0 (82e1608df 2023-12-21)
- cargo 1.75.0 (1d8b05cdd 2023-11-20)
- clippy 0.1.75 (82e1608 2023-12-21)
Annotations
Check failure on line 431 in src/app/from_string.rs
github-actions / clippy
the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `std::ops::FromResidual`)
error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `std::ops::FromResidual`)
--> src/app/from_string.rs:431:30
|
418 | let artifact = artifact_id.unwrap_or_else(|| {
| -- this function should return `Result` or `Option` to accept `?`
...
431 | )?
| ^ cannot use the `?` operator in a closure that returns `std::string::String`
|
= help: the trait `std::ops::FromResidual<std::result::Result<std::convert::Infallible, anyhow::Error>>` is not implemented for `std::string::String`
Loading