Implement Display for Token #81
check_format.yml
on: push
cargo fmt
20s
Clippy lint and check
1m 7s
Annotations
10 warnings
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;
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
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
|
fields `access_context`, `in_use_context`, `model_context`, and `query_context` are never read:
src/api/ecdar_api.rs#L28
warning: fields `access_context`, `in_use_context`, `model_context`, and `query_context` are never read
--> src/api/ecdar_api.rs:28:5
|
27 | pub struct ConcreteEcdarApi {
| ---------------- fields in this struct
28 | access_context: Arc<dyn AccessContextTrait>,
| ^^^^^^^^^^^^^^
29 | in_use_context: Arc<dyn InUseContextTrait>,
| ^^^^^^^^^^^^^^
30 | model_context: Arc<dyn ModelContextTrait>,
| ^^^^^^^^^^^^^
31 | query_context: Arc<dyn QueryContextTrait>,
| ^^^^^^^^^^^^^
|
= note: `ConcreteEcdarApi` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
|
fields `access_context`, `in_use_context`, `model_context`, and `query_context` are never read:
src/api/ecdar_api.rs#L28
warning: fields `access_context`, `in_use_context`, `model_context`, and `query_context` are never read
--> src/api/ecdar_api.rs:28:5
|
27 | pub struct ConcreteEcdarApi {
| ---------------- fields in this struct
28 | access_context: Arc<dyn AccessContextTrait>,
| ^^^^^^^^^^^^^^
29 | in_use_context: Arc<dyn InUseContextTrait>,
| ^^^^^^^^^^^^^^
30 | model_context: Arc<dyn ModelContextTrait>,
| ^^^^^^^^^^^^^
31 | query_context: Arc<dyn QueryContextTrait>,
| ^^^^^^^^^^^^^
|
= 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
|
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
= note: `#[warn(clippy::module_inception)]` on by default
|
variant name ends with the enum's name:
target/debug/build/api_server-eaa07576554c49a0/out/ecdar_proto_buf.rs#L64
warning: variant name ends with the enum's name
--> /home/runner/work/Ecdar-API/Ecdar-API/target/debug/build/api_server-eaa07576554c49a0/out/ecdar_proto_buf.rs:64:9
|
64 | ComponentClock(ComponentClock),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
= note: `#[warn(clippy::enum_variant_names)]` on by default
|
variant name ends with the enum's name:
target/debug/build/api_server-eaa07576554c49a0/out/ecdar_proto_buf.rs#L67
warning: variant name ends with the enum's name
--> /home/runner/work/Ecdar-API/Ecdar-API/target/debug/build/api_server-eaa07576554c49a0/out/ecdar_proto_buf.rs:67:9
|
67 | SystemClock(SystemClock),
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
|
variant name ends with the enum's name:
target/debug/build/api_server-eaa07576554c49a0/out/ecdar_proto_buf.rs#L70
warning: variant name ends with the enum's name
--> /home/runner/work/Ecdar-API/Ecdar-API/target/debug/build/api_server-eaa07576554c49a0/out/ecdar_proto_buf.rs:70:9
|
70 | ZeroClock(ZeroClock),
| ^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
|
all variants have the same postfix: `Clock`:
target/debug/build/api_server-eaa07576554c49a0/out/ecdar_proto_buf.rs#L61
warning: all variants have the same postfix: `Clock`
--> /home/runner/work/Ecdar-API/Ecdar-API/target/debug/build/api_server-eaa07576554c49a0/out/ecdar_proto_buf.rs:61:5
|
61 | / pub enum Clock {
62 | | /// When a clock is attached to a component
63 | | #[prost(message, tag = "1")]
64 | | ComponentClock(ComponentClock),
... |
70 | | ZeroClock(ZeroClock),
71 | | }
| |_____^
|
= help: remove the postfixes and use full paths to the variants instead of glob imports
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
|