From 16d9c28ed1fe2115ac2e8c3c0ec7a25325054c5d Mon Sep 17 00:00:00 2001 From: William Tetlie Date: Thu, 29 Jan 2026 16:19:59 +0100 Subject: [PATCH] add clear() function to SimpleCache --- crates/cracker/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/cracker/src/lib.rs b/crates/cracker/src/lib.rs index 9a79fb4..738183b 100644 --- a/crates/cracker/src/lib.rs +++ b/crates/cracker/src/lib.rs @@ -71,4 +71,9 @@ impl Cache for SimpleCache { } } } + + fn clear(&self) { + let mut hash = self.0.borrow_mut(); + hash.clear(); + } }