style: Minimal cleanup in bloom.rs

This commit is contained in:
Emilio Cobos Álvarez 2017-09-08 23:30:02 +02:00
parent caa83fc421
commit 7f2a9478f0
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -88,14 +88,15 @@ impl<E: TElement> PushedElement<E> {
fn new(el: E, num_hashes: usize) -> Self {
PushedElement {
element: unsafe { SendElement::new(el) },
num_hashes: num_hashes,
num_hashes,
}
}
}
fn each_relevant_element_hash<E, F>(element: E, mut f: F)
where E: TElement,
F: FnMut(u32),
where
E: TElement,
F: FnMut(u32),
{
f(element.get_local_name().get_hash());
f(element.get_namespace().get_hash());