refactored fallible helper functions #241
Annotations
10 warnings
clippy --all-targets --all-features:
src/build.rs#L2
warning: used `unwrap()` on a `Result` value
--> src/build.rs:2:5
|
2 | / tonic_build::configure()
3 | | .type_attribute(
4 | | "ComponentsInfo",
5 | | "#[derive(serde::Serialize, serde::Deserialize)]",
... |
13 | | .compile(&["Ecdar-ProtoBuf/services.proto"], &["Ecdar-ProtoBuf/"])
14 | | .unwrap();
| |_________________^
|
= note: if this value is an `Err`, it will panic
= help: consider using `expect()` to provide a better panic message
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used
= note: requested on the command line with `-W clippy::unwrap-used`
|
clippy --all-targets --all-features:
src/api/ecdar_api.rs#L22
warning: unused import: `DbErr`
--> src/api/ecdar_api.rs:22:15
|
22 | use sea_orm::{DbErr, SqlErr};
| ^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
clippy --all-targets --all-features:
src/api/ecdar_api.rs#L99
warning: unused variable: `err`
--> src/api/ecdar_api.rs:99:31
|
99 | .map_err(|err| Status::internal("failed to get token from request metadata"))?
| ^^^ help: if this is intentional, prefix it with an underscore: `_err`
|
= note: `#[warn(unused_variables)]` on by default
|
clippy --all-targets --all-features:
src/api/ecdar_api.rs#L22
warning: unused import: `DbErr`
--> src/api/ecdar_api.rs:22:15
|
22 | use sea_orm::{DbErr, SqlErr};
| ^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
clippy --all-targets --all-features:
src/api/ecdar_api.rs#L99
warning: unused variable: `err`
--> src/api/ecdar_api.rs:99:31
|
99 | .map_err(|err| Status::internal("failed to get token from request metadata"))?
| ^^^ help: if this is intentional, prefix it with an underscore: `_err`
|
= note: `#[warn(unused_variables)]` on by default
|
clippy --all-targets --all-features:
src/api/ecdar_api.rs#L206
warning: unused variable: `err`
--> src/api/ecdar_api.rs:206:47
|
206 | ... .map_err(|err| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_err`
|
clippy --all-targets --all-features:
src/api/ecdar_api.rs#L334
warning: unused variable: `err`
--> src/api/ecdar_api.rs:334:31
|
334 | .map_err(|err| Status::internal("failed to get token from request metadata"))?
| ^^^ help: if this is intentional, prefix it with an underscore: `_err`
|
clippy --all-targets --all-features:
src/api/ecdar_api.rs#L419
warning: unused variable: `err`
--> src/api/ecdar_api.rs:419:31
|
419 | .map_err(|err| Status::internal("failed to get token from request metadata"))?
| ^^^ help: if this is intentional, prefix it with an underscore: `_err`
|
clippy --all-targets --all-features:
src/api/ecdar_api.rs#L867
warning: unused variable: `err`
--> src/api/ecdar_api.rs:867:31
|
867 | .map_err(|err| Status::internal("failed to get token from request metadata"))?
| ^^^ help: if this is intentional, prefix it with an underscore: `_err`
|
clippy --all-targets --all-features:
src/api/ecdar_api.rs#L206
warning: unused variable: `err`
--> src/api/ecdar_api.rs:206:47
|
206 | ... .map_err(|err| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_err`
|
The logs for this run have expired and are no longer available.
Loading