Remove redundant code #180
check_format.yml
on: push
cargo fmt
16s
Clippy lint and check
54s
Annotations
10 warnings
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
|
function `get_reset_database_context` is never used:
src/tests/database/helpers.rs#L10
warning: function `get_reset_database_context` is never used
--> src/tests/database/helpers.rs:10:14
|
10 | pub async fn get_reset_database_context() -> Arc<dyn DatabaseContextTrait> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
function `create_entities` is never used:
src/tests/database/helpers.rs#L44
warning: function `create_entities` is never used
--> src/tests/database/helpers.rs:44:8
|
44 | pub fn create_entities<M, F>(amount: i32, model_creator: F) -> Vec<M>
| ^^^^^^^^^^^^^^^
|
function `create_users` is never used:
src/tests/database/helpers.rs#L55
warning: function `create_users` is never used
--> src/tests/database/helpers.rs:55:8
|
55 | pub fn create_users(amount: i32) -> Vec<user::Model> {
| ^^^^^^^^^^^^
|
function `create_models` is never used:
src/tests/database/helpers.rs#L64
warning: function `create_models` is never used
--> src/tests/database/helpers.rs:64:8
|
64 | pub fn create_models(amount: i32, user_id: i32) -> Vec<model::Model> {
| ^^^^^^^^^^^^^
|
function `create_accesses` is never used:
src/tests/database/helpers.rs#L73
warning: function `create_accesses` is never used
--> src/tests/database/helpers.rs:73:8
|
73 | pub fn create_accesses(amount: i32, user_id: i32, model_id: i32) -> Vec<access::Model> {
| ^^^^^^^^^^^^^^^
|
function `create_sessions` is never used:
src/tests/database/helpers.rs#L82
warning: function `create_sessions` is never used
--> src/tests/database/helpers.rs:82:8
|
82 | pub fn create_sessions(amount: i32, user_id: i32) -> Vec<session::Model> {
| ^^^^^^^^^^^^^^^
|
function `create_in_uses` is never used:
src/tests/database/helpers.rs#L92
warning: function `create_in_uses` is never used
--> src/tests/database/helpers.rs:92:8
|
92 | pub fn create_in_uses(amount: i32, model_id: i32, session_id: i32) -> Vec<in_use::Model> {
| ^^^^^^^^^^^^^^
|
function `create_queries` is never used:
src/tests/database/helpers.rs#L100
warning: function `create_queries` is never used
--> src/tests/database/helpers.rs:100:8
|
100 | pub fn create_queries(amount: i32, model_id: i32) -> Vec<query::Model> {
| ^^^^^^^^^^^^^^
|
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
|