Fix inconsistent expect messages in text::editor
This commit is contained in:
parent
a01b123cec
commit
b5466f41ca
1 changed files with 3 additions and 3 deletions
|
|
@ -43,7 +43,7 @@ impl Editor {
|
||||||
fn internal(&self) -> &Arc<Internal> {
|
fn internal(&self) -> &Arc<Internal> {
|
||||||
self.0
|
self.0
|
||||||
.as_ref()
|
.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,
|
new_highlighter: &mut impl Highlighter,
|
||||||
) {
|
) {
|
||||||
let 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)
|
let mut internal = Arc::try_unwrap(editor)
|
||||||
.expect("Editor cannot have multiple strong references");
|
.expect("Editor cannot have multiple strong references");
|
||||||
|
|
@ -565,7 +565,7 @@ impl editor::Editor for Editor {
|
||||||
}
|
}
|
||||||
|
|
||||||
let 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)
|
let mut internal = Arc::try_unwrap(editor)
|
||||||
.expect("Editor cannot have multiple strong references");
|
.expect("Editor cannot have multiple strong references");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue