Merge branch 'main' into 23-delete-model-endpoint #126
check_format.yml
on: push
cargo fmt
20s
Clippy lint and check
43s
Annotations
2 errors and 10 warnings
unresolved import `crate::tests::api::helpers`:
src/api/../tests/api/session_logic.rs#L4
error[E0432]: unresolved import `crate::tests::api::helpers`
--> src/api/../tests/api/session_logic.rs:4:24
|
4 | use crate::tests::api::helpers::get_mock_services;
| ^^^^^^^ could not find `helpers` in `api`
|
Clippy lint and check
Clippy has exited with exit code 101
|
unused import: `crate::api::ecdar_api::handle_session`:
src/api/../tests/api/session_logic.rs#L1
warning: unused import: `crate::api::ecdar_api::handle_session`
--> src/api/../tests/api/session_logic.rs:1:5
|
1 | use crate::api::ecdar_api::handle_session;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: consider adding a `#[cfg(test)]` to the containing module
--> src/api/ecdar_api.rs:580:1
|
580 | mod session_logic_tests;
| ^^^^^^^^^^^^^^^^^^^^^^^^
= note: `#[warn(unused_imports)]` on by default
|
unused import: `crate::api::server::server::GetAuthTokenRequest`:
src/api/../tests/api/session_logic.rs#L2
warning: unused import: `crate::api::server::server::GetAuthTokenRequest`
--> src/api/../tests/api/session_logic.rs:2:5
|
2 | use crate::api::server::server::GetAuthTokenRequest;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: consider adding a `#[cfg(test)]` to the containing module
--> src/api/ecdar_api.rs:580:1
|
580 | mod session_logic_tests;
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::entities::session`:
src/api/../tests/api/session_logic.rs#L3
warning: unused import: `crate::entities::session`
--> src/api/../tests/api/session_logic.rs:3:5
|
3 | use crate::entities::session;
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
help: consider adding a `#[cfg(test)]` to the containing module
--> src/api/ecdar_api.rs:580:1
|
580 | mod session_logic_tests;
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `mockall::predicate`:
src/api/../tests/api/session_logic.rs#L5
warning: unused import: `mockall::predicate`
--> src/api/../tests/api/session_logic.rs:5:5
|
5 | use mockall::predicate;
| ^^^^^^^^^^^^^^^^^^
|
help: consider adding a `#[cfg(test)]` to the containing module
--> src/api/ecdar_api.rs:580:1
|
580 | mod session_logic_tests;
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `sea_orm::DbErr`:
src/api/../tests/api/session_logic.rs#L6
warning: unused import: `sea_orm::DbErr`
--> src/api/../tests/api/session_logic.rs:6:5
|
6 | use sea_orm::DbErr;
| ^^^^^^^^^^^^^^
|
help: consider adding a `#[cfg(test)]` to the containing module
--> src/api/ecdar_api.rs:580:1
|
580 | mod session_logic_tests;
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `std::str::FromStr`:
src/api/../tests/api/session_logic.rs#L7
warning: unused import: `std::str::FromStr`
--> src/api/../tests/api/session_logic.rs:7:5
|
7 | use std::str::FromStr;
| ^^^^^^^^^^^^^^^^^
|
help: consider adding a `#[cfg(test)]` to the containing module
--> src/api/ecdar_api.rs:580:1
|
580 | mod session_logic_tests;
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `std::sync::Arc`:
src/api/../tests/api/session_logic.rs#L8
warning: unused import: `std::sync::Arc`
--> src/api/../tests/api/session_logic.rs:8:5
|
8 | use std::sync::Arc;
| ^^^^^^^^^^^^^^
|
help: consider adding a `#[cfg(test)]` to the containing module
--> src/api/ecdar_api.rs:580:1
|
580 | mod session_logic_tests;
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
unused imports: `Code`, `Request`, `metadata`:
src/api/../tests/api/session_logic.rs#L9
warning: unused imports: `Code`, `Request`, `metadata`
--> src/api/../tests/api/session_logic.rs:9:13
|
9 | use tonic::{metadata, Code, Request};
| ^^^^^^^^ ^^^^ ^^^^^^^
|
help: consider adding a `#[cfg(test)]` to the containing module
--> src/api/ecdar_api.rs:580:1
|
580 | mod session_logic_tests;
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
unused imports: `Component`, `ComponentsInfo`:
src/api/../tests/api/model_logic.rs#L8
warning: unused imports: `Component`, `ComponentsInfo`
--> src/api/../tests/api/model_logic.rs:8:37
|
8 | ecdar_api_server::EcdarApi, Component, ComponentsInfo, DeleteModelRequest,
| ^^^^^^^^^ ^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
file is loaded as a module multiple times: `src/api/../tests/api/query_logic.rs`:
src/api/ecdar_api.rs#L559
warning: file is loaded as a module multiple times: `src/api/../tests/api/query_logic.rs`
--> src/api/ecdar_api.rs:559:1
|
559 | / #[cfg(test)]
560 | | #[path = "../tests/api/query_logic.rs"]
561 | | mod query_logic_tests;
| |______________________^ first loaded here
...
571 | / #[cfg(test)]
572 | | #[path = "../tests/api/query_logic.rs"]
573 | | mod query_logic;
| |________________^ 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: `-W clippy::duplicate-mod` implied by `-W clippy::suspicious`
= help: to override `-W clippy::suspicious` add `#[allow(clippy::duplicate_mod)]`
|