cargo fmt #133
check_format.yml
on: push
cargo fmt
25s
Clippy lint and check
40s
Annotations
10 errors and 6 warnings
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 {
| +++++++++
|
unused imports: `in_use_context::InUseContextTrait`, `model_context::ModelContextTrait`, `query_context::QueryContextTrait`:
src/api/ecdar_api.rs#L16
warning: unused imports: `in_use_context::InUseContextTrait`, `model_context::ModelContextTrait`, `query_context::QueryContextTrait`
--> src/api/ecdar_api.rs:16:41
|
16 | access_context::AccessContextTrait, in_use_context::InUseContextTrait,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17 | model_context::ModelContextTrait, query_context::QueryContextTrait,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
unused import: `crate::entities::access::Model`:
src/api/ecdar_api.rs#L20
warning: unused import: `crate::entities::access::Model`
--> src/api/ecdar_api.rs:20:5
|
20 | use crate::entities::access::Model;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused imports: `in_use_context::InUseContextTrait`, `model_context::ModelContextTrait`, `query_context::QueryContextTrait`:
src/api/ecdar_api.rs#L16
warning: unused imports: `in_use_context::InUseContextTrait`, `model_context::ModelContextTrait`, `query_context::QueryContextTrait`
--> src/api/ecdar_api.rs:16:41
|
16 | access_context::AccessContextTrait, in_use_context::InUseContextTrait,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17 | model_context::ModelContextTrait, query_context::QueryContextTrait,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
unused import: `crate::entities::access::Model`:
src/api/ecdar_api.rs#L20
warning: unused import: `crate::entities::access::Model`
--> src/api/ecdar_api.rs:20:5
|
20 | use crate::entities::access::Model;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `access_context::AccessContextTrait`:
src/api/ecdar_api.rs#L16
warning: unused import: `access_context::AccessContextTrait`
--> src/api/ecdar_api.rs:16:5
|
16 | access_context::AccessContextTrait, in_use_context::InUseContextTrait,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `access_context::AccessContextTrait`:
src/api/ecdar_api.rs#L16
warning: unused import: `access_context::AccessContextTrait`
--> src/api/ecdar_api.rs:16:5
|
16 | access_context::AccessContextTrait, in_use_context::InUseContextTrait,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|