revert #105
GitHub Actions / clippy
failed
Feb 2, 2024 in 0s
clippy
2 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 2 |
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
`match` arms have incompatible types
error[E0308]: `match` arms have incompatible types
--> src/app/from_string.rs:420:37
|
418 | let artifact = match artifact_id {
| ----------------- `match` arms have incompatible types
419 | Some(r) => r,
| - this is found to be of type `std::string::String`
420 | None => self.prompt_string_filled(
| _____________________________________^
421 | | "Artifact?",
422 | | if urlstr.starts_with(&suggest) {
423 | | urlstr
... |
430 | | },
431 | | ),
| |_____________________________^ expected `String`, found `Result<String, Error>`
|
= note: expected struct `std::string::String`
found enum `std::result::Result<std::string::String, anyhow::Error>`
help: use the `?` operator to extract the `std::result::Result<std::string::String, anyhow::Error>` value, propagating a `Result::Err` value to the caller
|
431 | )?,
| +
Check failure on line 427 in src/app/from_string.rs
github-actions / clippy
mismatched types
error[E0308]: mismatched types
--> src/app/from_string.rs:423:37
|
423 | / ... urlstr
424 | | ... .strip_prefix(&suggest)
425 | | ... .unwrap()
426 | | ... .split('/')
427 | | ... .find(|x| !x.is_empty())
| |__________________________________________________^ expected `&str`, found `Option<&str>`
|
= note: expected reference `&str`
found enum `std::option::Option<&str>`
help: consider using `Option::expect` to unwrap the `std::option::Option<&str>` value, panicking if the value is an `Option::None`
|
427 | .find(|x| !x.is_empty()).expect("REASON")
| +++++++++++++++++
Loading