added lints to cargo.toml #74
Annotations
3 errors and 10 warnings
clippy --all-targets --all-features:
src/api/../tests/api/ecdar_api.rs#L37
error: passing a unit value to a function
--> src/api/../tests/api/ecdar_api.rs:37:34
|
37 | let mut delete_request = Request::new({});
| ^^^^^^^^^^^^^--^
| |
| help: use a unit literal instead: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg
= note: `-D clippy::unit-arg` implied by `-D clippy::complexity`
= help: to override `-D clippy::complexity` add `#[allow(clippy::unit_arg)]`
|
clippy --all-targets --all-features:
src/database/../tests/database/query_context.rs#L181
error: useless conversion to the same type: `&str`
--> src/database/../tests/database/query_context.rs:181:44
|
181 | string: query.clone().string + "123".into(),
| ^^^^^^^^^^^^ help: consider removing `.into()`: `"123"`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `-D clippy::useless-conversion` implied by `-D clippy::complexity`
= help: to override `-D clippy::complexity` add `#[allow(clippy::useless_conversion)]`
|
clippy --all-targets --all-features
Clippy has exited with exit code 101
|
clippy --all-targets --all-features:
src/api/../tests/api/ecdar_api.rs#L3
warning: unused import: `crate::api::ecdar_api::handle_session`
--> src/api/../tests/api/ecdar_api.rs:3:9
|
3 | use crate::api::ecdar_api::handle_session;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
clippy --all-targets --all-features:
src/api/../tests/api/ecdar_api.rs#L4
warning: unused import: `crate::api::server::server::ecdar_api_auth_server::EcdarApiAuth`
--> src/api/../tests/api/ecdar_api.rs:4:9
|
4 | use crate::api::server::server::ecdar_api_auth_server::EcdarApiAuth;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
clippy --all-targets --all-features:
src/api/../tests/api/ecdar_api.rs#L5
warning: unused import: `crate::api::server::server::get_auth_token_request::user_credentials`
--> src/api/../tests/api/ecdar_api.rs:5:9
|
5 | use crate::api::server::server::get_auth_token_request::user_credentials;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
clippy --all-targets --all-features:
src/api/../tests/api/ecdar_api.rs#L6
warning: unused import: `crate::api::server::server::get_auth_token_request::UserCredentials`
--> src/api/../tests/api/ecdar_api.rs:6:9
|
6 | use crate::api::server::server::get_auth_token_request::UserCredentials;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
clippy --all-targets --all-features:
src/api/../tests/api/ecdar_api.rs#L7
warning: unused imports: `CreateUserRequest`, `GetAuthTokenRequest`, `UpdateUserRequest`
--> src/api/../tests/api/ecdar_api.rs:7:38
|
7 | use crate::api::server::server::{CreateUserRequest, GetAuthTokenRequest, UpdateUserRequest};
| ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^
|
clippy --all-targets --all-features:
src/api/../tests/api/ecdar_api.rs#L9
warning: unused imports: `entities::session::Model as Session`, `entities::user::Model as User`
--> src/api/../tests/api/ecdar_api.rs:9:58
|
9 | api::server::server::ecdar_api_server::EcdarApi, entities::session::Model as Session,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10 | entities::user::Model as User,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
clippy --all-targets --all-features:
src/api/../tests/api/ecdar_api.rs#L12
warning: unused import: `async_trait::async_trait`
--> src/api/../tests/api/ecdar_api.rs:12:9
|
12 | use async_trait::async_trait;
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
clippy --all-targets --all-features:
src/api/../tests/api/ecdar_api.rs#L18
warning: unused import: `crate::database::database_context::DatabaseContextTrait`
--> src/api/../tests/api/ecdar_api.rs:18:9
|
18 | use crate::database::database_context::DatabaseContextTrait;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
clippy --all-targets --all-features:
src/api/../tests/api/ecdar_api.rs#L19
warning: unused import: `crate::database::entity_context::EntityContextTrait`
--> src/api/../tests/api/ecdar_api.rs:19:9
|
19 | use crate::database::entity_context::EntityContextTrait;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
clippy --all-targets --all-features:
src/api/../tests/api/ecdar_api.rs#L20
warning: unused imports: `UserContextTrait`, `UserContext`
--> src/api/../tests/api/ecdar_api.rs:20:41
|
20 | use crate::database::user_context::{UserContext, UserContextTrait};
| ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^
|
The logs for this run have expired and are no longer available.
Loading