Fix more clippy (#32740)

This commit is contained in:
石蕊 (Pi-Cla) 2024-07-09 04:47:43 +00:00 committed by GitHub
parent 4e1f623666
commit f29dd64a7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 72 additions and 90 deletions

View file

@ -438,10 +438,7 @@ impl XRSession {
self.outside_raf.set(false);
let len = self.current_raf_callback_list.borrow().len();
for i in 0..len {
let callback = self.current_raf_callback_list.borrow()[i]
.1
.as_ref()
.map(Rc::clone);
let callback = self.current_raf_callback_list.borrow()[i].1.clone();
if let Some(callback) = callback {
let _ = callback.Call__(time, &frame, ExceptionHandling::Report);
}