fix: extract CallLog type alias to satisfy clippy type_complexity
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user