Make Cache::clear immutable
This commit is contained in:
parent
cb395abd19
commit
4655411256
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue