Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sabotack committed Nov 28, 2023
1 parent 3dc208a commit c1f6b63
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/api/ecdar_api.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
use crate::api::context_collection::ContextCollection;
use regex::Regex;
use sea_orm::SqlErr;
use serde_json;
use std::sync::Arc;
use tonic::{Code, Request, Response, Status};
use crate::api::auth::{RequestExt, Token, TokenType};
use crate::database::{
access_context::AccessContextTrait, in_use_context::InUseContextTrait,
model_context::ModelContextTrait, query_context::QueryContextTrait,
session_context::SessionContextTrait, user_context::UserContextTrait,
};
use crate::entities::access::Model;
use super::server::server::UpdateModelRequest;
use super::server::server::{
ecdar_api_auth_server::EcdarApiAuth,
Expand All @@ -23,7 +10,20 @@ use super::server::server::{
SimulationStepRequest, SimulationStepResponse, UpdateAccessRequest, UpdateQueryRequest,
UpdateUserRequest, UserTokenResponse,
};
use crate::api::auth::{RequestExt, Token, TokenType};
use crate::api::context_collection::ContextCollection;
use crate::database::{
access_context::AccessContextTrait, in_use_context::InUseContextTrait,

Check warning on line 16 in src/api/ecdar_api.rs

View workflow job for this annotation

GitHub Actions / Clippy lint and check

unused imports: `in_use_context::InUseContextTrait`, `model_context::ModelContextTrait`, `query_context::QueryContextTrait`

warning: unused imports: `in_use_context::InUseContextTrait`, `model_context::ModelContextTrait`, `query_context::QueryContextTrait` --> src/api/ecdar_api.rs:16:41 | 16 | access_context::AccessContextTrait, in_use_context::InUseContextTrait, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 17 | model_context::ModelContextTrait, query_context::QueryContextTrait, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default

Check warning on line 16 in src/api/ecdar_api.rs

View workflow job for this annotation

GitHub Actions / Clippy lint and check

unused imports: `in_use_context::InUseContextTrait`, `model_context::ModelContextTrait`, `query_context::QueryContextTrait`

warning: unused imports: `in_use_context::InUseContextTrait`, `model_context::ModelContextTrait`, `query_context::QueryContextTrait` --> src/api/ecdar_api.rs:16:41 | 16 | access_context::AccessContextTrait, in_use_context::InUseContextTrait, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 17 | model_context::ModelContextTrait, query_context::QueryContextTrait, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default

Check warning on line 16 in src/api/ecdar_api.rs

View workflow job for this annotation

GitHub Actions / Clippy lint and check

unused import: `access_context::AccessContextTrait`

warning: unused import: `access_context::AccessContextTrait` --> src/api/ecdar_api.rs:16:5 | 16 | access_context::AccessContextTrait, in_use_context::InUseContextTrait, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 16 in src/api/ecdar_api.rs

View workflow job for this annotation

GitHub Actions / Clippy lint and check

unused import: `access_context::AccessContextTrait`

warning: unused import: `access_context::AccessContextTrait` --> src/api/ecdar_api.rs:16:5 | 16 | access_context::AccessContextTrait, in_use_context::InUseContextTrait, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
model_context::ModelContextTrait, query_context::QueryContextTrait,
session_context::SessionContextTrait, user_context::UserContextTrait,
};
use crate::entities::access::Model;

Check warning on line 20 in src/api/ecdar_api.rs

View workflow job for this annotation

GitHub Actions / Clippy lint and check

unused import: `crate::entities::access::Model`

warning: unused import: `crate::entities::access::Model` --> src/api/ecdar_api.rs:20:5 | 20 | use crate::entities::access::Model; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 20 in src/api/ecdar_api.rs

View workflow job for this annotation

GitHub Actions / Clippy lint and check

unused import: `crate::entities::access::Model`

warning: unused import: `crate::entities::access::Model` --> src/api/ecdar_api.rs:20:5 | 20 | use crate::entities::access::Model; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
use crate::entities::{access, query, session, user};
use regex::Regex;
use sea_orm::SqlErr;
use serde_json;
use std::sync::Arc;
use tonic::{Code, Request, Response, Status};

#[derive(Clone)]
pub struct ConcreteEcdarApi {
Expand Down

0 comments on commit c1f6b63

Please sign in to comment.