mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
update comments
This commit is contained in:
parent
f74e45dcfd
commit
b8a77dc8bd
1 changed files with 3 additions and 4 deletions
|
|
@ -275,8 +275,8 @@ pub fn migrate(tx: &Transaction) -> Result<(), String> {
|
||||||
|
|
||||||
// Private helpers @TODO move outside
|
// Private helpers @TODO move outside
|
||||||
|
|
||||||
/// Extract formatted page position from C-based
|
/// Extract `Optional` page position from C-based
|
||||||
/// [action state](https://docs.gtk.org/gio/property.SimpleAction.state.html)
|
/// [SimpleAction state](https://docs.gtk.org/gio/property.SimpleAction.state.html)
|
||||||
fn page_position_from_action_state(action: &SimpleAction) -> Option<i32> {
|
fn page_position_from_action_state(action: &SimpleAction) -> Option<i32> {
|
||||||
let page_position = action
|
let page_position = action
|
||||||
.state()
|
.state()
|
||||||
|
|
@ -291,8 +291,7 @@ fn page_position_from_action_state(action: &SimpleAction) -> Option<i32> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Extract `String` from C-based
|
/// Extract `String` from [Variant](https://docs.gtk.org/glib/struct.Variant.html)
|
||||||
/// [Variant](https://docs.gtk.org/glib/struct.Variant.html)
|
|
||||||
fn string_from_variant(variant: Option<&Variant>) -> String {
|
fn string_from_variant(variant: Option<&Variant>) -> String {
|
||||||
variant
|
variant
|
||||||
.expect("Variant required for this action")
|
.expect("Variant required for this action")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue