Skip to content

Truly independent web browser

LibWeb: Give CowSet its is_empty() back

sideshowbarker59158f57cb0b
diff --git a/Libraries/LibWeb/Rust/src/cow_map.rs b/Libraries/LibWeb/Rust/src/cow_map.rs
index fc0876946c8..7e333744451 100644
--- a/Libraries/LibWeb/Rust/src/cow_map.rs
+++ b/Libraries/LibWeb/Rust/src/cow_map.rs
@@ -414,6 +414,10 @@ impl<T: Clone + Eq + Hash> CowSet<T> {
self.0.heap_size()
}
+ pub(crate) fn is_empty(&self) -> bool {
+ self.0.is_empty()
+ }
+
pub(crate) fn clear(&mut self) {
self.0.clear();
}