fix: extract CallLog type alias to satisfy clippy type_complexity
All checks were successful
lint / lint (push) Successful in 14m20s
test / unit (push) Successful in 16m15s

This commit is contained in:
2026-05-29 21:07:48 +02:00
parent 442a61bbdb
commit 3357484bbf

View File

@@ -3,11 +3,13 @@ use async_trait::async_trait;
use domain::value_objects::{ThoughtId, UserId}; use domain::value_objects::{ThoughtId, UserId};
use std::sync::{Arc, Mutex}; use std::sync::{Arc, Mutex};
type CallLog = Arc<Mutex<Vec<(String, Vec<u8>)>>>;
struct SpyTransport { struct SpyTransport {
calls: Arc<Mutex<Vec<(String, Vec<u8>)>>>, calls: CallLog,
} }
impl SpyTransport { impl SpyTransport {
fn new() -> (Self, Arc<Mutex<Vec<(String, Vec<u8>)>>>) { fn new() -> (Self, CallLog) {
let calls = Arc::new(Mutex::new(vec![])); let calls = Arc::new(Mutex::new(vec![]));
( (
Self { Self {