From b268b7744c0951da5a002ec650a901b7b0b89e9b Mon Sep 17 00:00:00 2001 From: Luuk van der Duim Date: Sun, 3 Mar 2024 23:34:06 +0100 Subject: [PATCH] Clippy: Immediately dereferenced reference. --- cache/benches/load_test.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cache/benches/load_test.rs b/cache/benches/load_test.rs index ffa0bb3b..b2a8e214 100644 --- a/cache/benches/load_test.rs +++ b/cache/benches/load_test.rs @@ -4,6 +4,8 @@ use std::{ time::Duration, }; +use atspi_connection::AccessibilityConnection; +use atspi_proxies::accessible::Accessible; use criterion::{criterion_group, criterion_main, BatchSize, BenchmarkId, Criterion}; use odilia_cache::{AccessiblePrimitive, Cache, CacheItem}; @@ -220,7 +222,7 @@ fn cache_benchmark(c: &mut Criterion) { b.to_async(&rt).iter_batched( || { children.iter() - .map(|am| Arc::clone(&am).read().unwrap().clone()) + .map(|am| Arc::clone(am).read().unwrap().clone()) .collect() }, |cs| async { traverse_up(cs).await },