Skip to content

fix: fix issues related to previous commit

Sign in for the full log view
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

See this annotation in the file changed.

@github-actions 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`