Skip to content

Cargo fmt

Cargo fmt #6

Triggered via push November 10, 2023 12:03
Status Success
Total duration 1m 22s
Artifacts

check_format.yml

on: push
cargo fmt
29s
cargo fmt
Clippy lint and check
1m 13s
Clippy lint and check
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
file is loaded as a module multiple times: `src/api/../tests/database/helpers.rs`: src/api/ecdar_api.rs#L38
warning: file is loaded as a module multiple times: `src/api/../tests/database/helpers.rs` --> src/api/ecdar_api.rs:38:1 | 38 | / #[path = "../tests/database/helpers.rs"] 39 | | 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#L15
warning: unused import: `crate::database::database_context::DatabaseContextTrait` --> src/api/ecdar_api.rs:15:5 | 15 | use crate::database::database_context::DatabaseContextTrait; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused variable: `refresh_token`: src/api/ecdar_api.rs#L222
warning: unused variable: `refresh_token` --> src/api/ecdar_api.rs:222:42 | 222 | AuthOption::RefreshToken(refresh_token) => { | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_refresh_token` | = note: `#[warn(unused_variables)]` on by default
unused import: `crate::database::database_context::DatabaseContextTrait`: src/api/ecdar_api.rs#L15
warning: unused import: `crate::database::database_context::DatabaseContextTrait` --> src/api/ecdar_api.rs:15:5 | 15 | use crate::database::database_context::DatabaseContextTrait; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused variable: `refresh_token`: src/api/ecdar_api.rs#L222
warning: unused variable: `refresh_token` --> src/api/ecdar_api.rs:222:42 | 222 | AuthOption::RefreshToken(refresh_token) => { | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_refresh_token` | = note: `#[warn(unused_variables)]` on by default
fields `model_context`, `access_context`, `query_context`, `session_context`, and `in_use_context` are never read: src/api/ecdar_api.rs#L44
warning: fields `model_context`, `access_context`, `query_context`, `session_context`, and `in_use_context` are never read --> src/api/ecdar_api.rs:44:5 | 42 | pub struct ConcreteEcdarApi { | ---------------- fields in this struct 43 | reveaal_address: String, 44 | model_context: Arc<dyn ModelContextTrait + Send + Sync>, | ^^^^^^^^^^^^^ 45 | user_context: Arc<dyn UserContextTrait + Send + Sync>, 46 | access_context: Arc<dyn AccessContextTrait + Send + Sync>, | ^^^^^^^^^^^^^^ 47 | query_context: Arc<dyn QueryContextTrait + Send + Sync>, | ^^^^^^^^^^^^^ 48 | session_context: Arc<dyn SessionContextTrait + Send + Sync>, | ^^^^^^^^^^^^^^^ 49 | in_use_context: Arc<dyn InUseContextTrait + Send + Sync>, | ^^^^^^^^^^^^^^ | = 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#L89
warning: associated function `setup_in_memory_db` is never used --> src/api/ecdar_api.rs:89:18 | 66 | impl ConcreteEcdarApi { | --------------------- associated function in this implementation ... 89 | pub async fn setup_in_memory_db(entities: Vec<AnyEntity>) -> Self { | ^^^^^^^^^^^^^^^^^^
fields `model_context`, `access_context`, `query_context`, `session_context`, and `in_use_context` are never read: src/api/ecdar_api.rs#L44
warning: fields `model_context`, `access_context`, `query_context`, `session_context`, and `in_use_context` are never read --> src/api/ecdar_api.rs:44:5 | 42 | pub struct ConcreteEcdarApi { | ---------------- fields in this struct 43 | reveaal_address: String, 44 | model_context: Arc<dyn ModelContextTrait + Send + Sync>, | ^^^^^^^^^^^^^ 45 | user_context: Arc<dyn UserContextTrait + Send + Sync>, 46 | access_context: Arc<dyn AccessContextTrait + Send + Sync>, | ^^^^^^^^^^^^^^ 47 | query_context: Arc<dyn QueryContextTrait + Send + Sync>, | ^^^^^^^^^^^^^ 48 | session_context: Arc<dyn SessionContextTrait + Send + Sync>, | ^^^^^^^^^^^^^^^ 49 | in_use_context: Arc<dyn InUseContextTrait + Send + Sync>, | ^^^^^^^^^^^^^^ | = 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}, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` 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}, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default