clippy: Fix various clippy warnings in components/scripts/dom/bindings (#31901)

* single-character string constant used as pattern

* singuse of  with literal radix of 16
This commit is contained in:
Rosemary Ajayi 2024-03-28 12:49:36 +01:00 committed by GitHub
parent 18054d0737
commit 7100465d1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -237,7 +237,7 @@ pub struct ThreadLocalStackRoots<'a>(PhantomData<&'a u32>);
impl<'a> ThreadLocalStackRoots<'a> {
pub fn new(roots: &'a RootCollection) -> Self {
STACK_ROOTS.with(|ref r| r.set(Some(roots)));
STACK_ROOTS.with(|r| r.set(Some(roots)));
ThreadLocalStackRoots(PhantomData)
}
}