clippy: Fix search_is_some warnings (#31971)

This commit is contained in:
Oluwatobi Sofela 2024-04-02 05:01:52 +01:00 committed by GitHub
parent 71f4c5c916
commit da3991c8f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 12 deletions

View file

@ -1909,11 +1909,7 @@ impl Window {
let mut images = self.pending_layout_images.borrow_mut();
let nodes = images.entry(id).or_default();
if nodes
.iter()
.find(|n| &***n as *const _ == &*node as *const _)
.is_none()
{
if !nodes.iter().any(|n| &**n as *const _ == &*node as *const _) {
let (responder, responder_listener) =
ProfiledIpc::channel(self.global().time_profiler_chan().clone()).unwrap();
let image_cache_chan = self.image_cache_chan.clone();