summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-09-18 13:58:39 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-09-18 13:58:39 +0200
commitb5466f41ca33452fb0d4e8470856c027d3b26e39 (patch)
treeb89688ad7e7d492d145399e995ff01912b9eadee /graphics
parenta01b123cec1b57a9100d56f567fcfbf91967b12f (diff)
downloadiced-b5466f41ca33452fb0d4e8470856c027d3b26e39.tar.gz
iced-b5466f41ca33452fb0d4e8470856c027d3b26e39.tar.bz2
iced-b5466f41ca33452fb0d4e8470856c027d3b26e39.zip
Fix inconsistent `expect` messages in `text::editor`
Diffstat (limited to 'graphics')
-rw-r--r--graphics/src/text/editor.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/src/text/editor.rs b/graphics/src/text/editor.rs
index 59096e74..de1b998b 100644
--- a/graphics/src/text/editor.rs
+++ b/graphics/src/text/editor.rs
@@ -43,7 +43,7 @@ impl Editor {
fn internal(&self) -> &Arc<Internal> {
self.0
.as_ref()
- .expect("editor should always be initialized")
+ .expect("Editor should always be initialized")
}
}
@@ -458,7 +458,7 @@ impl editor::Editor for Editor {
new_highlighter: &mut impl Highlighter,
) {
let editor =
- self.0.take().expect("editor should always be initialized");
+ self.0.take().expect("Editor should always be initialized");
let mut internal = Arc::try_unwrap(editor)
.expect("Editor cannot have multiple strong references");
@@ -565,7 +565,7 @@ impl editor::Editor for Editor {
}
let editor =
- self.0.take().expect("editor should always be initialized");
+ self.0.take().expect("Editor should always be initialized");
let mut internal = Arc::try_unwrap(editor)
.expect("Editor cannot have multiple strong references");