summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrtkay123 <dev@kanjala.com>2025-08-02 13:17:56 +0200
committerrtkay123 <dev@kanjala.com>2025-08-02 13:17:56 +0200
commit8cb64da6e387c5961222a2dc691fd1d7bc608c24 (patch)
tree685d322ac39cf23fe6d67fb4602f0f53bac34a16
parent9d9e800664503b1e2051ee4e05d83a880e63c6f4 (diff)
downloadsellershut-8cb64da6e387c5961222a2dc691fd1d7bc608c24.tar.bz2
sellershut-8cb64da6e387c5961222a2dc691fd1d7bc608c24.zip
fix: clippy noise
-rw-r--r--crates/auth-service/src/server/grpc/interceptor.rs1
-rw-r--r--crates/auth-service/src/server/routes/authorised.rs7
-rw-r--r--crates/sellershut/src/server/middleware/grpc_interceptor.rs2
-rw-r--r--crates/users-service/src/server/interceptor.rs1
4 files changed, 3 insertions, 8 deletions
diff --git a/crates/auth-service/src/server/grpc/interceptor.rs b/crates/auth-service/src/server/grpc/interceptor.rs
index 155a306..bc0bc07 100644
--- a/crates/auth-service/src/server/grpc/interceptor.rs
+++ b/crates/auth-service/src/server/grpc/interceptor.rs
@@ -3,7 +3,6 @@ use tonic::{
service::{Interceptor, interceptor::InterceptedService},
transport::Channel,
};
-use tracing::Span;
pub type Intercepted = InterceptedService<Channel, MyInterceptor>;
diff --git a/crates/auth-service/src/server/routes/authorised.rs b/crates/auth-service/src/server/routes/authorised.rs
index 9b97cd2..552f6c1 100644
--- a/crates/auth-service/src/server/routes/authorised.rs
+++ b/crates/auth-service/src/server/routes/authorised.rs
@@ -9,10 +9,7 @@ use axum::{
use axum_extra::{TypedHeader, headers};
use oauth2::{AuthorizationCode, TokenResponse};
use reqwest::{StatusCode, header::SET_COOKIE};
-use sellershut_core::{
- auth::{RegisterUserRequest, auth_server::Auth, register_user_request::AccountDetails},
- users::CreateUserRequest,
-};
+use sellershut_core::auth::{RegisterUserRequest, auth_server::Auth, register_user_request::AccountDetails};
use serde::{Deserialize, Serialize};
use sqlx::types::uuid;
use time::OffsetDateTime;
@@ -28,7 +25,7 @@ use crate::{
error::AppError,
server::{
OAUTH_CSRF_COOKIE, csrf_token_validation::csrf_token_validation_workflow,
- grpc::auth::DbUser, keys::generate_actor_keypair, routes::Provider,
+ grpc::auth::DbUser, routes::Provider,
},
state::AppHandle,
};
diff --git a/crates/sellershut/src/server/middleware/grpc_interceptor.rs b/crates/sellershut/src/server/middleware/grpc_interceptor.rs
index f8759cf..bc0bc07 100644
--- a/crates/sellershut/src/server/middleware/grpc_interceptor.rs
+++ b/crates/sellershut/src/server/middleware/grpc_interceptor.rs
@@ -10,7 +10,7 @@ pub type Intercepted = InterceptedService<Channel, MyInterceptor>;
pub struct MyInterceptor;
impl Interceptor for MyInterceptor {
- fn call(&mut self, mut request: tonic::Request<()>) -> Result<tonic::Request<()>, Status> {
+ fn call(&mut self, request: tonic::Request<()>) -> Result<tonic::Request<()>, Status> {
Ok(request)
}
}
diff --git a/crates/users-service/src/server/interceptor.rs b/crates/users-service/src/server/interceptor.rs
index 6fbe7fa..33a835d 100644
--- a/crates/users-service/src/server/interceptor.rs
+++ b/crates/users-service/src/server/interceptor.rs
@@ -1,5 +1,4 @@
use tonic::{Status, service::Interceptor};
-use tracing::Span;
#[derive(Clone, Copy)]
pub struct MyInterceptor;