Merge branch 'main' into update-user-refactor #83
check_format.yml
on: push
cargo fmt
27s
Clippy lint and check
1m 27s
Annotations
4 errors and 11 warnings
cargo fmt
The process '/home/runner/.cargo/bin/cargo' failed with exit code 1
|
cannot find struct, variant or union type `User` in this scope:
src/api/ecdar_api.rs#L257
error[E0422]: cannot find struct, variant or union type `User` in this scope
--> src/api/ecdar_api.rs:257:24
|
257 | let new_user = User {
| ^^^^ not found in this scope
|
help: consider importing one of these items
|
1 + use crate::entities::access::Relation::User;
|
1 + use crate::entities::model::Relation::User;
|
1 + use crate::entities::prelude::User;
|
1 + use crate::entities::session::Relation::User;
|
|
cannot find struct, variant or union type `User` in this scope:
src/api/ecdar_api.rs#L257
error[E0422]: cannot find struct, variant or union type `User` in this scope
--> src/api/ecdar_api.rs:257:24
|
257 | let new_user = User {
| ^^^^ not found in this scope
|
help: consider importing this struct through its public re-export
|
1 + use crate::entities::prelude::User;
|
|
Clippy lint and check
Clippy has exited with exit code 101
|
cargo fmt:
src/api/ecdar_api.rs#L1
Diff in /home/runner/work/Ecdar-API/Ecdar-API/src/api/ecdar_api.rs
|
unused import: `crate::entities::session::Model`:
src/api/ecdar_api.rs#L4
warning: unused import: `crate::entities::session::Model`
--> src/api/ecdar_api.rs:4:5
|
4 | use crate::entities::session::Model;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
unused import: `crate::entities::session::Model`:
src/api/ecdar_api.rs#L4
warning: unused import: `crate::entities::session::Model`
--> src/api/ecdar_api.rs:4:5
|
4 | use crate::entities::session::Model;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
unused import: `crate::api::ecdar_api::handle_session`:
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;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::api::server::server::ecdar_api_auth_server::EcdarApiAuth`:
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;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::api::server::server::get_auth_token_request::user_credentials`:
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;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::api::server::server::get_auth_token_request::UserCredentials`:
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;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused imports: `CreateUserRequest`, `GetAuthTokenRequest`, `UpdateUserRequest`:
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};
| ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^
|
unused imports: `entities::session::Model as Session`, `entities::user::Model as User`:
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,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `async_trait::async_trait`:
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;
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::database::database_context::DatabaseContextTrait`:
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;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|