mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
clippy: Fix a few problems in components/scripts
(#31959)
* fixed various clippy warnings * fixed various clippy warnings
This commit is contained in:
parent
00c4d798c9
commit
52a74287fc
5 changed files with 6 additions and 6 deletions
|
@ -43,7 +43,7 @@ impl XRInputSourceArray {
|
|||
// This is quadratic, but won't be a problem for the only case
|
||||
// where we add multiple input sources (the initial input sources case)
|
||||
debug_assert!(
|
||||
input_sources.iter().find(|i| i.id() == info.id).is_none(),
|
||||
!input_sources.iter().any(|i| i.id() == info.id),
|
||||
"Should never add a duplicate input id!"
|
||||
);
|
||||
let input = XRInputSource::new(&global, session, info.clone());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue