remove mod around tests #175
check_format.yml
on: push
cargo fmt
19s
Clippy lint and check
46s
Annotations
1 error and 7 warnings
cargo fmt
The process '/home/runner/.cargo/bin/cargo' failed with exit code 1
|
cargo fmt:
src/tests/database/access_context.rs#L1
Diff in /home/runner/work/Ecdar-API/Ecdar-API/src/database/../tests/database/access_context.rs
|
cargo fmt:
src/tests/database/in_use_context.rs#L1
Diff in /home/runner/work/Ecdar-API/Ecdar-API/src/database/../tests/database/in_use_context.rs
|
unused variable: `res`:
src/api/ecdar_api.rs#L49
warning: unused variable: `res`
--> src/api/ecdar_api.rs:49:13
|
49 | let res = session_context
| ^^^ help: if this is intentional, prefix it with an underscore: `_res`
|
= note: `#[warn(unused_variables)]` on by default
|
unused variable: `res`:
src/api/ecdar_api.rs#L49
warning: unused variable: `res`
--> src/api/ecdar_api.rs:49:13
|
49 | let res = session_context
| ^^^ help: if this is intentional, prefix it with an underscore: `_res`
|
= note: `#[warn(unused_variables)]` 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
|
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
|