diff options
author | 2022-09-13 17:38:44 +0200 | |
---|---|---|
committer | 2022-09-13 17:38:44 +0200 | |
commit | 465541125612ef6e70623098b956d5c757b0b1cf (patch) | |
tree | f69c664c5adac6eb06019fdfbe46ad1f1b4dd28d /graphics | |
parent | cb395abd197ef06bc79b91d184ffa52e9bd17c82 (diff) | |
download | iced-465541125612ef6e70623098b956d5c757b0b1cf.tar.gz iced-465541125612ef6e70623098b956d5c757b0b1cf.tar.bz2 iced-465541125612ef6e70623098b956d5c757b0b1cf.zip |
Make `Cache::clear` immutable
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/src/widget/canvas/cache.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/src/widget/canvas/cache.rs b/graphics/src/widget/canvas/cache.rs index 5af694e9..49873ac9 100644 --- a/graphics/src/widget/canvas/cache.rs +++ b/graphics/src/widget/canvas/cache.rs @@ -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; } |