Skip to content

Commit

Permalink
Remove a workaround for a Clippy issue
Browse files Browse the repository at this point in the history
Remove allow `clippy::arc_with_non_send_sync` as the false positives have been fixed
in Clippy.
  • Loading branch information
tatsuya6502 committed Oct 14, 2023
1 parent 33a06d3 commit 3c6c6bf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions src/notification/notifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,9 @@ impl<K, V> ThreadPoolRemovalNotifier<K, V> {
is_shutting_down: Default::default(),
};

#[cfg_attr(beta_clippy, allow(clippy::arc_with_non_send_sync))]
let state = Arc::new(state);

Self {
snd,
state,
state: Arc::new(state),
thread_pool,
}
}
Expand Down
1 change: 0 additions & 1 deletion src/sync_base/invalidator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ impl<K, V, S> Invalidator<K, V, S> {
Self {
predicates: RwLock::new(HashMap::new()),
is_empty: AtomicBool::new(true),
#[cfg_attr(beta_clippy, allow(clippy::arc_with_non_send_sync))]
scan_context: Arc::new(ScanContext::new(cache)),
thread_pool,
}
Expand Down

0 comments on commit 3c6c6bf

Please sign in to comment.