mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
update comments
This commit is contained in:
parent
f74e45dcfd
commit
b8a77dc8bd
@ -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…
x
Reference in New Issue
Block a user