Skip to content

Merge branch 'main' into 18-update-model-endpoint #132

Merge branch 'main' into 18-update-model-endpoint

Merge branch 'main' into 18-update-model-endpoint #132

Triggered via push November 28, 2023 12:28
Status Failure
Total duration 48s
Artifacts

check_format.yml

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

Annotations

11 errors and 8 warnings
cargo fmt
The process '/home/runner/.cargo/bin/cargo' failed with exit code 1
failed to resolve: use of undeclared crate or module `model`: src/api/ecdar_api.rs#L125
error[E0433]: failed to resolve: use of undeclared crate or module `model` --> src/api/ecdar_api.rs:125:21 | 125 | let model = model::Model { | ^^^^^ use of undeclared crate or module `model` | help: consider importing this module | 1 + use crate::entities::model; |
failed to resolve: use of undeclared crate or module `model`: src/api/ecdar_api.rs#L188
error[E0433]: failed to resolve: use of undeclared crate or module `model` --> src/api/ecdar_api.rs:188:25 | 188 | let new_model = model::Model { | ^^^^^ use of undeclared crate or module `model` | help: consider importing this module | 1 + use crate::entities::model; |
failed to resolve: use of undeclared crate or module `model`: src/api/ecdar_api.rs#L125
error[E0433]: failed to resolve: use of undeclared crate or module `model` --> src/api/ecdar_api.rs:125:21 | 125 | let model = model::Model { | ^^^^^ use of undeclared crate or module `model` | help: consider importing this module | 1 + use crate::entities::model; |
failed to resolve: use of undeclared crate or module `model`: src/api/ecdar_api.rs#L188
error[E0433]: failed to resolve: use of undeclared crate or module `model` --> src/api/ecdar_api.rs:188:25 | 188 | let new_model = model::Model { | ^^^^^ use of undeclared crate or module `model` | help: consider importing this module | 1 + use crate::entities::model; |
no field `model_context` on type `&api::ecdar_api::ConcreteEcdarApi`: src/api/ecdar_api.rs#L132
error[E0609]: no field `model_context` on type `&api::ecdar_api::ConcreteEcdarApi` --> src/api/ecdar_api.rs:132:20 | 132 | match self.model_context.create(model).await { | ^^^^^^^^^^^^^ unknown field | = note: available fields are: `contexts` help: one of the expressions' fields has a field of the same name | 132 | match self.contexts.model_context.create(model).await { | +++++++++
no field `model_context` on type `&api::ecdar_api::ConcreteEcdarApi`: src/api/ecdar_api.rs#L153
error[E0609]: no field `model_context` on type `&api::ecdar_api::ConcreteEcdarApi` --> src/api/ecdar_api.rs:153:32 | 153 | let model = match self.model_context.get_by_id(message.id).await { | ^^^^^^^^^^^^^ unknown field | = note: available fields are: `contexts` help: one of the expressions' fields has a field of the same name | 153 | let model = match self.contexts.model_context.get_by_id(message.id).await { | +++++++++
no field `access_context` on type `&api::ecdar_api::ConcreteEcdarApi`: src/api/ecdar_api.rs#L161
error[E0609]: no field `access_context` on type `&api::ecdar_api::ConcreteEcdarApi` --> src/api/ecdar_api.rs:161:14 | 161 | .access_context | ^^^^^^^^^^^^^^ unknown field | = note: available fields are: `contexts` help: one of the expressions' fields has a field of the same name | 161 | .contexts.access_context | +++++++++
no field `model_context` on type `&api::ecdar_api::ConcreteEcdarApi`: src/api/ecdar_api.rs#L204
error[E0609]: no field `model_context` on type `&api::ecdar_api::ConcreteEcdarApi` --> src/api/ecdar_api.rs:204:20 | 204 | match self.model_context.update(new_model).await { | ^^^^^^^^^^^^^ unknown field | = note: available fields are: `contexts` help: one of the expressions' fields has a field of the same name | 204 | match self.contexts.model_context.update(new_model).await { | +++++++++
no field `model_context` on type `&api::ecdar_api::ConcreteEcdarApi`: src/api/ecdar_api.rs#L132
error[E0609]: no field `model_context` on type `&api::ecdar_api::ConcreteEcdarApi` --> src/api/ecdar_api.rs:132:20 | 132 | match self.model_context.create(model).await { | ^^^^^^^^^^^^^ unknown field | = note: available fields are: `contexts` help: one of the expressions' fields has a field of the same name | 132 | match self.contexts.model_context.create(model).await { | +++++++++
no field `model_context` on type `&api::ecdar_api::ConcreteEcdarApi`: src/api/ecdar_api.rs#L153
error[E0609]: no field `model_context` on type `&api::ecdar_api::ConcreteEcdarApi` --> src/api/ecdar_api.rs:153:32 | 153 | let model = match self.model_context.get_by_id(message.id).await { | ^^^^^^^^^^^^^ unknown field | = note: available fields are: `contexts` help: one of the expressions' fields has a field of the same name | 153 | let model = match self.contexts.model_context.get_by_id(message.id).await { | +++++++++
cargo fmt: src/api/ecdar_api.rs#L1
Diff in /home/runner/work/Ecdar-API/Ecdar-API/src/api/ecdar_api.rs
cargo fmt: src/api/ecdar_api.rs#L23
Diff in /home/runner/work/Ecdar-API/Ecdar-API/src/api/ecdar_api.rs
unused imports: `in_use_context::InUseContextTrait`, `model_context::ModelContextTrait`, `query_context::QueryContextTrait`: src/api/ecdar_api.rs#L9
warning: unused imports: `in_use_context::InUseContextTrait`, `model_context::ModelContextTrait`, `query_context::QueryContextTrait` --> src/api/ecdar_api.rs:9:41 | 9 | access_context::AccessContextTrait, in_use_context::InUseContextTrait, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10 | model_context::ModelContextTrait, query_context::QueryContextTrait, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
unused import: `crate::entities::access::Model`: src/api/ecdar_api.rs#L13
warning: unused import: `crate::entities::access::Model` --> src/api/ecdar_api.rs:13:5 | 13 | use crate::entities::access::Model; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused imports: `in_use_context::InUseContextTrait`, `model_context::ModelContextTrait`, `query_context::QueryContextTrait`: src/api/ecdar_api.rs#L9
warning: unused imports: `in_use_context::InUseContextTrait`, `model_context::ModelContextTrait`, `query_context::QueryContextTrait` --> src/api/ecdar_api.rs:9:41 | 9 | access_context::AccessContextTrait, in_use_context::InUseContextTrait, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10 | model_context::ModelContextTrait, query_context::QueryContextTrait, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
unused import: `crate::entities::access::Model`: src/api/ecdar_api.rs#L13
warning: unused import: `crate::entities::access::Model` --> src/api/ecdar_api.rs:13:5 | 13 | use crate::entities::access::Model; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `access_context::AccessContextTrait`: src/api/ecdar_api.rs#L9
warning: unused import: `access_context::AccessContextTrait` --> src/api/ecdar_api.rs:9:5 | 9 | access_context::AccessContextTrait, in_use_context::InUseContextTrait, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `access_context::AccessContextTrait`: src/api/ecdar_api.rs#L9
warning: unused import: `access_context::AccessContextTrait` --> src/api/ecdar_api.rs:9:5 | 9 | access_context::AccessContextTrait, in_use_context::InUseContextTrait, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^