mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
style: Minimal cleanup in bloom.rs
This commit is contained in:
parent
caa83fc421
commit
7f2a9478f0
1 changed files with 4 additions and 3 deletions
|
@ -88,13 +88,14 @@ impl<E: TElement> PushedElement<E> {
|
||||||
fn new(el: E, num_hashes: usize) -> Self {
|
fn new(el: E, num_hashes: usize) -> Self {
|
||||||
PushedElement {
|
PushedElement {
|
||||||
element: unsafe { SendElement::new(el) },
|
element: unsafe { SendElement::new(el) },
|
||||||
num_hashes: num_hashes,
|
num_hashes,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn each_relevant_element_hash<E, F>(element: E, mut f: F)
|
fn each_relevant_element_hash<E, F>(element: E, mut f: F)
|
||||||
where E: TElement,
|
where
|
||||||
|
E: TElement,
|
||||||
F: FnMut(u32),
|
F: FnMut(u32),
|
||||||
{
|
{
|
||||||
f(element.get_local_name().get_hash());
|
f(element.get_local_name().get_hash());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue