summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-09-13 17:38:44 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-09-13 17:38:44 +0200
commit465541125612ef6e70623098b956d5c757b0b1cf (patch)
treef69c664c5adac6eb06019fdfbe46ad1f1b4dd28d /graphics
parentcb395abd197ef06bc79b91d184ffa52e9bd17c82 (diff)
downloadiced-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.rs2
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;
}