removed unwraps in project, #218
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#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/auth.rs#L177
warning: methods `as_str` and `token_type` are never used
--> src/api/auth.rs:177:12
|
83 | impl Token {
| ---------- methods in this implementation
...
177 | pub fn as_str(&self) -> &str {
| ^^^^^^
...
191 | pub fn token_type(&self) -> TokenType {
| ^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
clippy --all-targets --all-features:
src/api/server.rs#L12
warning: module has the same name as its containing module
--> src/api/server.rs:12:1
|
12 | / pub mod server {
13 | | tonic::include_proto!("ecdar_proto_buf");
14 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_inception
= note: `#[warn(clippy::module_inception)]` on by default
|
clippy --all-targets --all-features:
src/api/server.rs#L12
warning: module has the same name as its containing module
--> src/api/server.rs:12:1
|
12 | / pub mod server {
13 | | tonic::include_proto!("ecdar_proto_buf");
14 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_inception
= note: `#[warn(clippy::module_inception)]` on by default
|
clippy --all-targets --all-features:
target/debug/build/api_server-0a97bb8a4683af29/out/ecdar_proto_buf.rs#L1918
warning: used `unwrap()` on a `Result` value
--> /home/runner/work/Ecdar-API/Ecdar-API/target/debug/build/api_server-0a97bb8a4683af29/out/ecdar_proto_buf.rs:1918:29
|
1918 | / ... http::Response::builder()
1919 | | ... .status(200)
1920 | | ... .header("grpc-status", "12")
1921 | | ... .header("content-type", "application/grpc")
1922 | | ... .body(empty_body())
1923 | | ... .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:
target/debug/build/api_server-0a97bb8a4683af29/out/ecdar_proto_buf.rs#L2693
warning: used `unwrap()` on a `Result` value
--> /home/runner/work/Ecdar-API/Ecdar-API/target/debug/build/api_server-0a97bb8a4683af29/out/ecdar_proto_buf.rs:2693:29
|
2693 | / ... http::Response::builder()
2694 | | ... .status(200)
2695 | | ... .header("grpc-status", "12")
2696 | | ... .header("content-type", "application/grpc")
2697 | | ... .body(empty_body())
2698 | | ... .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
|
clippy --all-targets --all-features:
target/debug/build/api_server-0a97bb8a4683af29/out/ecdar_proto_buf.rs#L2924
warning: used `unwrap()` on a `Result` value
--> /home/runner/work/Ecdar-API/Ecdar-API/target/debug/build/api_server-0a97bb8a4683af29/out/ecdar_proto_buf.rs:2924:29
|
2924 | / ... http::Response::builder()
2925 | | ... .status(200)
2926 | | ... .header("grpc-status", "12")
2927 | | ... .header("content-type", "application/grpc")
2928 | | ... .body(empty_body())
2929 | | ... .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
|
clippy --all-targets --all-features:
target/debug/build/api_server-0a97bb8a4683af29/out/ecdar_proto_buf.rs#L1918
warning: used `unwrap()` on a `Result` value
--> /home/runner/work/Ecdar-API/Ecdar-API/target/debug/build/api_server-0a97bb8a4683af29/out/ecdar_proto_buf.rs:1918:29
|
1918 | / ... http::Response::builder()
1919 | | ... .status(200)
1920 | | ... .header("grpc-status", "12")
1921 | | ... .header("content-type", "application/grpc")
1922 | | ... .body(empty_body())
1923 | | ... .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
|
The logs for this run have expired and are no longer available.
Loading