Merge pull request #66 from ECDAR-AAU-SW-P5/list-models-info #163
check_format.yml
on: push
cargo fmt
22s
Clippy lint and check
34s
Annotations
9 warnings
cannot test inner items:
src/database/../tests/database/model_context.rs#L405
warning: cannot test inner items
--> src/database/../tests/database/model_context.rs:405:5
|
405 | #[tokio::test]
| ^^^^^^^^^^^^^^
|
= note: `#[warn(unnameable_test_items)]` on by default
= note: this warning originates in the attribute macro `::core::prelude::v1::test` (in Nightly builds, run with -Z macro-backtrace for more info)
|
cannot test inner items:
src/database/../tests/database/model_context.rs#L435
warning: cannot test inner items
--> src/database/../tests/database/model_context.rs:435:5
|
435 | #[tokio::test]
| ^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `::core::prelude::v1::test` (in Nightly builds, run with -Z macro-backtrace for more info)
|
function `get_model_info_by_uid_test` is never used:
src/database/../tests/database/model_context.rs#L406
warning: function `get_model_info_by_uid_test` is never used
--> src/database/../tests/database/model_context.rs:406:14
|
406 | async fn get_model_info_by_uid_test() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
function `get_model_info_by_uid_non_existing_id_test` is never used:
src/database/../tests/database/model_context.rs#L436
warning: function `get_model_info_by_uid_non_existing_id_test` is never used
--> src/database/../tests/database/model_context.rs:436:14
|
436 | async fn get_model_info_by_uid_non_existing_id_test() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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
|