diff --git a/auctioning_platform/auctions/tests/use_cases/in_memory_repo.rs b/auctioning_platform/auctions/tests/use_cases/in_memory_repo.rs index 26cc94f..24bf6a4 100644 --- a/auctioning_platform/auctions/tests/use_cases/in_memory_repo.rs +++ b/auctioning_platform/auctions/tests/use_cases/in_memory_repo.rs @@ -9,12 +9,14 @@ pub struct InMemoryAuctionsRepo { } impl Default for InMemoryAuctionsRepo { fn default() -> Self { - Self { store: Mutex::new(HashMap::new()) } + Self { + store: Mutex::new(HashMap::new()), + } } } impl InMemoryAuctionsRepo { pub fn new() -> Self { - Self { store: Mutex::new(HashMap::new()) } + Self::default() } }