Skip to content

Commit

Permalink
Clippy: Immediately dereferenced reference.
Browse files Browse the repository at this point in the history
  • Loading branch information
luukvanderduim committed Mar 3, 2024
1 parent 4d6aac8 commit b268b77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cache/benches/load_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down Expand Up @@ -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 },
Expand Down

0 comments on commit b268b77

Please sign in to comment.