Skip to content

Merge branch '9-setup-api-server' into refactor-create-token #32

Merge branch '9-setup-api-server' into refactor-create-token

Merge branch '9-setup-api-server' into refactor-create-token #32

Triggered via push November 14, 2023 09:08
Status Success
Total duration 30s
Artifacts

check_format.yml

on: push
cargo fmt
18s
cargo fmt
Clippy lint and check
21s
Clippy lint and check
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
unused import: `crate::entities::access`: src/api/ecdar_api.rs#L6
warning: unused import: `crate::entities::access` --> src/api/ecdar_api.rs:6:5 | 6 | use crate::entities::access; | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
unused import: `crate::entities::access`: src/api/ecdar_api.rs#L6
warning: unused import: `crate::entities::access` --> src/api/ecdar_api.rs:6:5 | 6 | use crate::entities::access; | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
file is loaded as a module multiple times: `src/api/../tests/database/helpers.rs`: src/api/ecdar_api.rs#L40
warning: file is loaded as a module multiple times: `src/api/../tests/database/helpers.rs` --> src/api/ecdar_api.rs:40:1 | 40 | / #[path = "../tests/database/helpers.rs"] 41 | | pub mod helpers; | |________________^ first loaded here | ::: src/database/../tests/database/user_context.rs:1:1 | 1 | / #[path = "helpers.rs"] 2 | | pub mod helpers; | |________________^ loaded again here | = help: replace all but one `mod` item with `use` items = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#duplicate_mod = note: `#[warn(clippy::duplicate_mod)]` on by default
unused import: `crate::database::database_context::DatabaseContextTrait`: src/api/ecdar_api.rs#L18
warning: unused import: `crate::database::database_context::DatabaseContextTrait` --> src/api/ecdar_api.rs:18:5 | 18 | use crate::database::database_context::DatabaseContextTrait; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `crate::database::database_context::DatabaseContextTrait`: src/api/ecdar_api.rs#L18
warning: unused import: `crate::database::database_context::DatabaseContextTrait` --> src/api/ecdar_api.rs:18:5 | 18 | use crate::database::database_context::DatabaseContextTrait; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
fields `model_context`, `access_context`, `query_context`, and `in_use_context` are never read: src/api/ecdar_api.rs#L46
warning: fields `model_context`, `access_context`, `query_context`, and `in_use_context` are never read --> src/api/ecdar_api.rs:46:5 | 44 | pub struct ConcreteEcdarApi { | ---------------- fields in this struct 45 | reveaal_address: String, 46 | model_context: Arc<dyn ModelContextTrait>, | ^^^^^^^^^^^^^ 47 | user_context: Arc<dyn UserContextTrait>, 48 | access_context: Arc<dyn AccessContextTrait>, | ^^^^^^^^^^^^^^ 49 | query_context: Arc<dyn QueryContextTrait>, | ^^^^^^^^^^^^^ 50 | session_context: Arc<dyn SessionContextTrait>, 51 | in_use_context: Arc<dyn InUseContextTrait>, | ^^^^^^^^^^^^^^ | = note: `ConcreteEcdarApi` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` on by default
associated function `setup_in_memory_db` is never used: src/api/ecdar_api.rs#L152
warning: associated function `setup_in_memory_db` is never used --> src/api/ecdar_api.rs:152:18 | 132 | impl ConcreteEcdarApi { | --------------------- associated function in this implementation ... 152 | pub async fn setup_in_memory_db(entities: Vec<AnyEntity>) -> Self { | ^^^^^^^^^^^^^^^^^^
fields `model_context`, `access_context`, `query_context`, and `in_use_context` are never read: src/api/ecdar_api.rs#L46
warning: fields `model_context`, `access_context`, `query_context`, and `in_use_context` are never read --> src/api/ecdar_api.rs:46:5 | 44 | pub struct ConcreteEcdarApi { | ---------------- fields in this struct 45 | reveaal_address: String, 46 | model_context: Arc<dyn ModelContextTrait>, | ^^^^^^^^^^^^^ 47 | user_context: Arc<dyn UserContextTrait>, 48 | access_context: Arc<dyn AccessContextTrait>, | ^^^^^^^^^^^^^^ 49 | query_context: Arc<dyn QueryContextTrait>, | ^^^^^^^^^^^^^ 50 | session_context: Arc<dyn SessionContextTrait>, 51 | in_use_context: Arc<dyn InUseContextTrait>, | ^^^^^^^^^^^^^^ | = note: `ConcreteEcdarApi` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` on by default
unused import: `entity_context::EntityContextTrait`: src/api/../tests/database/helpers.rs#L3
warning: unused import: `entity_context::EntityContextTrait` --> src/api/../tests/database/helpers.rs:3:55 | 3 | database::{database_context::DatabaseContext, entity_context::EntityContextTrait}, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `entity_context::EntityContextTrait`: src/api/../tests/database/helpers.rs#L3
warning: unused import: `entity_context::EntityContextTrait` --> src/api/../tests/database/helpers.rs:3:55 | 3 | database::{database_context::DatabaseContext, entity_context::EntityContextTrait}, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^