Fixd some clippy warnings in components/script

This commit is contained in:
jahielkomu 2024-03-30 23:57:01 +03:00
parent 92d9081366
commit e74a03724f
3 changed files with 13 additions and 10 deletions

View file

@ -71,6 +71,9 @@ impl<'dom, LayoutDataType: LayoutDataTrait> ServoShadowRoot<'dom, LayoutDataType
}
}
/// # Safety
///
/// This function should not mutate StyleSharedRwLockReadGuard.
pub unsafe fn flush_stylesheets(
&self,
stylist: &mut Stylist,