Skip to content

Merge pull request #67 from ECDAR-AAU-SW-P5/delete-model-tests #115

Merge pull request #67 from ECDAR-AAU-SW-P5/delete-model-tests

Merge pull request #67 from ECDAR-AAU-SW-P5/delete-model-tests #115

Triggered via push November 28, 2023 09:52
Status Success
Total duration 1m 7s
Artifacts

check_format.yml

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

Annotations

10 warnings
unused import: `model`: src/api/ecdar_api.rs#L26
warning: unused import: `model` --> src/api/ecdar_api.rs:26:31 | 26 | use crate::entities::{access, model, query, session, user}; | ^^^^^ | = note: `#[warn(unused_imports)]` on by default
unused import: `model`: src/api/ecdar_api.rs#L26
warning: unused import: `model` --> src/api/ecdar_api.rs:26:31 | 26 | use crate::entities::{access, model, query, session, user}; | ^^^^^ | = note: `#[warn(unused_imports)]` on by default
field `in_use_context` is never read: src/api/ecdar_api.rs#L31
warning: field `in_use_context` is never read --> src/api/ecdar_api.rs:31:5 | 29 | pub struct ConcreteEcdarApi { | ---------------- field in this struct 30 | access_context: Arc<dyn AccessContextTrait>, 31 | in_use_context: Arc<dyn InUseContextTrait>, | ^^^^^^^^^^^^^^ | = note: `ConcreteEcdarApi` 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/ecdar_api.rs#L31
warning: field `in_use_context` is never read --> src/api/ecdar_api.rs:31:5 | 29 | pub struct ConcreteEcdarApi { | ---------------- field in this struct 30 | access_context: Arc<dyn AccessContextTrait>, 31 | in_use_context: Arc<dyn InUseContextTrait>, | ^^^^^^^^^^^^^^ | = note: `ConcreteEcdarApi` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` on by default
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, | ^^^^^^^^^ ^^^^^^^^^^^^^^
unused import: `futures::SinkExt`: src/api/../tests/api/ecdar_api.rs#L6
warning: unused import: `futures::SinkExt` --> src/api/../tests/api/ecdar_api.rs:6:9 | 6 | use futures::SinkExt; | ^^^^^^^^^^^^^^^^
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
module has the same name as its containing module: src/api/server.rs#L18
warning: module has the same name as its containing module --> src/api/server.rs:18:1 | 18 | / pub mod server { 19 | | tonic::include_proto!("ecdar_proto_buf"); 20 | | } | |_^ | = 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#L18
warning: module has the same name as its containing module --> src/api/server.rs:18:1 | 18 | / pub mod server { 19 | | tonic::include_proto!("ecdar_proto_buf"); 20 | | } | |_^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_inception
module has the same name as its containing module: src/api/../tests/api/access_logic.rs#L2
warning: module has the same name as its containing module --> src/api/../tests/api/access_logic.rs:2:1 | 2 | / mod access_logic { 3 | | use crate::api::server::server::ecdar_api_server::EcdarApi; 4 | | use crate::api::server::server::{ 5 | | CreateAccessRequest, DeleteAccessRequest, UpdateAccessRequest, ... | 174 | | } 175 | | } | |_^ | = 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