handle_session error handling #172
check_format.yml
on: push
cargo fmt
19s
Clippy lint and check
46s
Annotations
10 warnings
unused variable: `res`:
src/api/ecdar_api.rs#L49
warning: unused variable: `res`
--> src/api/ecdar_api.rs:49:13
|
49 | let res = session_context
| ^^^ help: if this is intentional, prefix it with an underscore: `_res`
|
= note: `#[warn(unused_variables)]` on by default
|
unused variable: `res`:
src/api/ecdar_api.rs#L49
warning: unused variable: `res`
--> src/api/ecdar_api.rs:49:13
|
49 | let res = session_context
| ^^^ help: if this is intentional, prefix it with an underscore: `_res`
|
= note: `#[warn(unused_variables)]` on by default
|
cannot test inner items:
src/database/../tests/database/model_context.rs#L407
warning: cannot test inner items
--> src/database/../tests/database/model_context.rs:407:5
|
407 | #[tokio::test]
| ^^^^^^^^^^^^^^
|
= note: `#[warn(unnameable_test_items)]` on by default
= note: this warning originates in the attribute macro `::core::prelude::v1::test` (in Nightly builds, run with -Z macro-backtrace for more info)
|
cannot test inner items:
src/database/../tests/database/model_context.rs#L437
warning: cannot test inner items
--> src/database/../tests/database/model_context.rs:437:5
|
437 | #[tokio::test]
| ^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `::core::prelude::v1::test` (in Nightly builds, run with -Z macro-backtrace for more info)
|
function `get_model_info_by_uid_test` is never used:
src/database/../tests/database/model_context.rs#L408
warning: function `get_model_info_by_uid_test` is never used
--> src/database/../tests/database/model_context.rs:408:14
|
408 | async fn get_model_info_by_uid_test() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
function `get_model_info_by_uid_non_existing_id_test` is never used:
src/database/../tests/database/model_context.rs#L438
warning: function `get_model_info_by_uid_non_existing_id_test` is never used
--> src/database/../tests/database/model_context.rs:438:14
|
438 | async fn get_model_info_by_uid_non_existing_id_test() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
methods `as_str` and `token_type` are never used:
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
|
module has the same name as its containing module:
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
|
module has the same name as its containing module:
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
|
function `delete_not_owner_returns_err` is never used:
src/api/../tests/api/model_logic.rs#L77
warning: function `delete_not_owner_returns_err` is never used
--> src/api/../tests/api/model_logic.rs:77:10
|
77 | async fn delete_not_owner_returns_err() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|