feat(hyper-error-handling): adds handling for hyper HTTP errors #131
GitHub Actions / clippy
failed
Aug 26, 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.80.1 (3f5fd8dd4 2024-08-06)
- cargo 1.80.1 (376290515 2024-07-16)
- clippy 0.1.80 (3f5fd8d 2024-08-06)
Annotations
Check failure on line 23 in hitbox-http/src/extractors/path.rs
github-actions / clippy
use of a fallible conversion when an infallible one could be used
error: use of a fallible conversion when an infallible one could be used
--> hitbox-http/src/extractors/path.rs:23:23
|
23 | resource: ResourceDef::try_from(resource).unwrap(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: converting `&str` to `ResourceDef` cannot fail
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions
= note: `-D clippy::unnecessary-fallible-conversions` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_fallible_conversions)]`
help: use
|
23 - resource: ResourceDef::try_from(resource).unwrap(),
23 + resource: ResourceDef::from(resource),
|
Loading