Fix merge error #127
check_format.yml
on: push
cargo fmt
28s
Clippy lint and check
45s
Annotations
7 warnings
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)]`
|
methods `as_str` and `token_type` are never used:
src/api/auth.rs#L177
warning: methods `as_str` and `token_type` are never used
--> src/api/auth.rs:177:12
|
83 | impl Token {
| ---------- methods in this implementation
...
177 | pub fn as_str(&self) -> &str {
| ^^^^^^
...
191 | pub fn token_type(&self) -> TokenType {
| ^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
field `in_use_context` is never read:
src/api/context_collection.rs#L14
warning: field `in_use_context` is never read
--> src/api/context_collection.rs:14:16
|
12 | pub struct ContextCollection {
| ----------------- field in this struct
13 | pub(crate) access_context: Arc<dyn AccessContextTrait>,
14 | pub(crate) in_use_context: Arc<dyn InUseContextTrait>,
| ^^^^^^^^^^^^^^
|
= note: `ContextCollection` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
|
field `in_use_context` is never read:
src/api/context_collection.rs#L14
warning: field `in_use_context` is never read
--> src/api/context_collection.rs:14:16
|
12 | pub struct ContextCollection {
| ----------------- field in this struct
13 | pub(crate) access_context: Arc<dyn AccessContextTrait>,
14 | pub(crate) in_use_context: Arc<dyn InUseContextTrait>,
| ^^^^^^^^^^^^^^
|
= note: `ContextCollection` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
|
module has the same name as its containing module:
src/api/server.rs#L12
warning: module has the same name as its containing module
--> src/api/server.rs:12:1
|
12 | / pub mod server {
13 | | tonic::include_proto!("ecdar_proto_buf");
14 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_inception
= note: `#[warn(clippy::module_inception)]` on by default
|
module has the same name as its containing module:
src/api/server.rs#L12
warning: module has the same name as its containing module
--> src/api/server.rs:12:1
|
12 | / pub mod server {
13 | | tonic::include_proto!("ecdar_proto_buf");
14 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_inception
= note: `#[warn(clippy::module_inception)]` on by default
|