Skip to content

Merger with 22-create-model #136

Merger with 22-create-model

Merger with 22-create-model #136

Triggered via push November 28, 2023 12:39
Status Failure
Total duration 1m 51s
Artifacts

check_format.yml

on: push
cargo fmt
35s
cargo fmt
Clippy lint and check
1m 42s
Clippy lint and check
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 11 warnings
cargo fmt
The process '/home/runner/.cargo/bin/cargo' failed with exit code 1
using `clone` on type `i32` which implements the `Copy` trait: src/api/../tests/api/model_logic.rs#L25
error: using `clone` on type `i32` which implements the `Copy` trait --> src/api/../tests/api/model_logic.rs:25:19 | 25 | owner_id: uid.clone(), | ^^^^^^^^^^^ help: try removing the `clone` call: `uid` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy = note: `-D clippy::clone-on-copy` implied by `-D clippy::complexity` = help: to override `-D clippy::complexity` add `#[allow(clippy::clone_on_copy)]`
using `clone` on type `i32` which implements the `Copy` trait: src/api/../tests/api/model_logic.rs#L37
error: using `clone` on type `i32` which implements the `Copy` trait --> src/api/../tests/api/model_logic.rs:37:19 | 37 | owner_id: uid.clone(), | ^^^^^^^^^^^ help: try removing the `clone` call: `uid` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `i32` which implements the `Copy` trait: src/api/../tests/api/model_logic.rs#L63
error: using `clone` on type `i32` which implements the `Copy` trait --> src/api/../tests/api/model_logic.rs:63:19 | 63 | owner_id: uid.clone(), | ^^^^^^^^^^^ help: try removing the `clone` call: `uid` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `i32` which implements the `Copy` trait: src/api/../tests/api/model_logic.rs#L75
error: using `clone` on type `i32` which implements the `Copy` trait --> src/api/../tests/api/model_logic.rs:75:19 | 75 | owner_id: uid.clone(), | ^^^^^^^^^^^ help: try removing the `clone` call: `uid` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
Clippy lint and check
Clippy has exited with exit code 101
cargo fmt: src/api/ecdar_api.rs#L447
Diff in /home/runner/work/Ecdar-API/Ecdar-API/src/api/ecdar_api.rs
cargo fmt: src/api/ecdar_api.rs#L486
Diff in /home/runner/work/Ecdar-API/Ecdar-API/src/api/ecdar_api.rs
unused imports: `access_context::AccessContextTrait`, `in_use_context::InUseContextTrait`, `model_context::ModelContextTrait`, `query_context::QueryContextTrait`: src/api/ecdar_api.rs#L10
warning: unused imports: `access_context::AccessContextTrait`, `in_use_context::InUseContextTrait`, `model_context::ModelContextTrait`, `query_context::QueryContextTrait` --> src/api/ecdar_api.rs:10:5 | 10 | access_context::AccessContextTrait, in_use_context::InUseContextTrait, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11 | model_context::ModelContextTrait, query_context::QueryContextTrait, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
unused imports: `access_context::AccessContextTrait`, `in_use_context::InUseContextTrait`, `model_context::ModelContextTrait`, `query_context::QueryContextTrait`: src/api/ecdar_api.rs#L10
warning: unused imports: `access_context::AccessContextTrait`, `in_use_context::InUseContextTrait`, `model_context::ModelContextTrait`, `query_context::QueryContextTrait` --> src/api/ecdar_api.rs:10:5 | 10 | access_context::AccessContextTrait, in_use_context::InUseContextTrait, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11 | model_context::ModelContextTrait, query_context::QueryContextTrait, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
unused import: `Component`: src/api/../tests/api/model_logic.rs#L3
warning: unused import: `Component` --> src/api/../tests/api/model_logic.rs:3:34 | 3 | use crate::api::server::server::{Component, ComponentsInfo, CreateModelRequest}; | ^^^^^^^^^
unused import: `user`: src/api/../tests/api/model_logic.rs#L4
warning: unused import: `user` --> src/api/../tests/api/model_logic.rs:4:30 | 4 | use crate::entities::{model, user}; | ^^^^
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