Skip to content

cargo fmt

cargo fmt #23

Triggered via push November 13, 2023 14:01
Status Success
Total duration 37s
Artifacts

check_format.yml

on: push
cargo fmt
24s
cargo fmt
Clippy lint and check
23s
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 imports: `TimeTime`, `Uuid`: src/api/ecdar_api.rs#L10
warning: unused imports: `TimeTime`, `Uuid` --> src/api/ecdar_api.rs:10:24 | 10 | use sea_orm::prelude::{TimeTime, Uuid}; | ^^^^^^^^ ^^^^
unused import: `super::auth::get_token_from_request`: src/api/ecdar_api.rs#L32
warning: unused import: `super::auth::get_token_from_request` --> src/api/ecdar_api.rs:32:5 | 32 | use super::auth::get_token_from_request; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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 imports: `TimeTime`, `Uuid`: src/api/ecdar_api.rs#L10
warning: unused imports: `TimeTime`, `Uuid` --> src/api/ecdar_api.rs:10:24 | 10 | use sea_orm::prelude::{TimeTime, Uuid}; | ^^^^^^^^ ^^^^
unused import: `super::auth::get_token_from_request`: src/api/ecdar_api.rs#L32
warning: unused import: `super::auth::get_token_from_request` --> src/api/ecdar_api.rs:32:5 | 32 | use super::auth::get_token_from_request; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
file is loaded as a module multiple times: `src/api/../tests/database/helpers.rs`: src/api/ecdar_api.rs#L42
warning: file is loaded as a module multiple times: `src/api/../tests/database/helpers.rs` --> src/api/ecdar_api.rs:42:1 | 42 | / #[path = "../tests/database/helpers.rs"] 43 | | 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#L19
warning: unused import: `crate::database::database_context::DatabaseContextTrait` --> src/api/ecdar_api.rs:19:5 | 19 | use crate::database::database_context::DatabaseContextTrait; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `crate::database::database_context::DatabaseContextTrait`: src/api/ecdar_api.rs#L19
warning: unused import: `crate::database::database_context::DatabaseContextTrait` --> src/api/ecdar_api.rs:19:5 | 19 | 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#L48
warning: fields `model_context`, `access_context`, `query_context`, and `in_use_context` are never read --> src/api/ecdar_api.rs:48:5 | 46 | pub struct ConcreteEcdarApi { | ---------------- fields in this struct 47 | reveaal_address: String, 48 | model_context: Arc<dyn ModelContextTrait>, | ^^^^^^^^^^^^^ 49 | user_context: Arc<dyn UserContextTrait>, 50 | access_context: Arc<dyn AccessContextTrait>, | ^^^^^^^^^^^^^^ 51 | query_context: Arc<dyn QueryContextTrait>, | ^^^^^^^^^^^^^ 52 | session_context: Arc<dyn SessionContextTrait>, 53 | 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