cargo fmt #5
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
check_format.yml
on: push
cargo fmt
12s
Clippy lint and check
59s
Annotations
10 warnings
file is loaded as a module multiple times: `src/api/../tests/database/helpers.rs`:
src/api/ecdar_api.rs#L37
warning: file is loaded as a module multiple times: `src/api/../tests/database/helpers.rs`
--> src/api/ecdar_api.rs:37:1
|
37 | / #[path = "../tests/database/helpers.rs"]
38 | | 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#L14
warning: unused import: `crate::database::database_context::DatabaseContextTrait`
--> src/api/ecdar_api.rs:14:5
|
14 | use crate::database::database_context::DatabaseContextTrait;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::database::database_context::DatabaseContextTrait`:
src/api/ecdar_api.rs#L14
warning: unused import: `crate::database::database_context::DatabaseContextTrait`
--> src/api/ecdar_api.rs:14:5
|
14 | use crate::database::database_context::DatabaseContextTrait;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
fields `model_context`, `access_context`, `query_context`, `session_context`, and `in_use_context` are never read:
src/api/ecdar_api.rs#L43
warning: fields `model_context`, `access_context`, `query_context`, `session_context`, and `in_use_context` are never read
--> src/api/ecdar_api.rs:43:5
|
41 | pub struct ConcreteEcdarApi {
| ---------------- fields in this struct
42 | reveaal_address: String,
43 | model_context: Arc<dyn ModelContextTrait + Send + Sync>,
| ^^^^^^^^^^^^^
44 | user_context: Arc<dyn UserContextTrait + Send + Sync>,
45 | access_context: Arc<dyn AccessContextTrait + Send + Sync>,
| ^^^^^^^^^^^^^^
46 | query_context: Arc<dyn QueryContextTrait + Send + Sync>,
| ^^^^^^^^^^^^^
47 | session_context: Arc<dyn SessionContextTrait + Send + Sync>,
| ^^^^^^^^^^^^^^^
48 | 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#L88
warning: associated function `setup_in_memory_db` is never used
--> src/api/ecdar_api.rs:88:18
|
65 | impl ConcreteEcdarApi {
| --------------------- associated function in this implementation
...
88 | 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#L43
warning: fields `model_context`, `access_context`, `query_context`, `session_context`, and `in_use_context` are never read
--> src/api/ecdar_api.rs:43:5
|
41 | pub struct ConcreteEcdarApi {
| ---------------- fields in this struct
42 | reveaal_address: String,
43 | model_context: Arc<dyn ModelContextTrait + Send + Sync>,
| ^^^^^^^^^^^^^
44 | user_context: Arc<dyn UserContextTrait + Send + Sync>,
45 | access_context: Arc<dyn AccessContextTrait + Send + Sync>,
| ^^^^^^^^^^^^^^
46 | query_context: Arc<dyn QueryContextTrait + Send + Sync>,
| ^^^^^^^^^^^^^
47 | session_context: Arc<dyn SessionContextTrait + Send + Sync>,
| ^^^^^^^^^^^^^^^
48 | 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
|
function `setup_db_with_entities` is never used:
src/api/../tests/database/helpers.rs#L14
warning: function `setup_db_with_entities` is never used
--> src/api/../tests/database/helpers.rs:14:18
|
14 | pub async fn setup_db_with_entities(entities: Vec<AnyEntity>) -> DatabaseContext {
| ^^^^^^^^^^^^^^^^^^^^^^
|
enum `AnyEntity` is never used:
src/api/../tests/database/helpers.rs#L25
warning: enum `AnyEntity` is never used
--> src/api/../tests/database/helpers.rs:25:14
|
25 | pub enum AnyEntity {
| ^^^^^^^^^
|