Make Cache::clear immutable

This commit is contained in:
Héctor Ramón Jiménez 2022-09-13 17:38:44 +02:00
parent cb395abd19
commit 4655411256
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -35,7 +35,7 @@ impl Cache {
}
/// Clears the [`Cache`], forcing a redraw the next time it is used.
pub fn clear(&mut self) {
pub fn clear(&self) {
*self.state.borrow_mut() = State::Empty;
}