mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
update messages
This commit is contained in:
parent
b8a77dc8bd
commit
985230de46
1 changed files with 2 additions and 2 deletions
|
|
@ -282,7 +282,7 @@ fn page_position_from_action_state(action: &SimpleAction) -> Option<i32> {
|
||||||
.state()
|
.state()
|
||||||
.expect("Page position required for this action")
|
.expect("Page position required for this action")
|
||||||
.get::<i32>()
|
.get::<i32>()
|
||||||
.expect("Parameter does not match `i32`");
|
.expect("Parameter type does not match `i32`");
|
||||||
|
|
||||||
if page_position > -1 {
|
if page_position > -1 {
|
||||||
Some(page_position)
|
Some(page_position)
|
||||||
|
|
@ -296,5 +296,5 @@ fn string_from_variant(variant: Option<&Variant>) -> String {
|
||||||
variant
|
variant
|
||||||
.expect("Variant required for this action")
|
.expect("Variant required for this action")
|
||||||
.get::<String>()
|
.get::<String>()
|
||||||
.expect("Parameter does not match `String`")
|
.expect("Parameter type does not match `String`")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue