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
27875feb04
commit
f74e45dcfd
1 changed files with 4 additions and 2 deletions
|
|
@ -273,6 +273,8 @@ pub fn migrate(tx: &Transaction) -> Result<(), String> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
// Private helpers @TODO move outside
|
||||
|
||||
/// Extract formatted page position from C-based
|
||||
/// [action state](https://docs.gtk.org/gio/property.SimpleAction.state.html)
|
||||
fn page_position_from_action_state(action: &SimpleAction) -> Option<i32> {
|
||||
|
|
@ -287,7 +289,7 @@ fn page_position_from_action_state(action: &SimpleAction) -> Option<i32> {
|
|||
} else {
|
||||
None
|
||||
}
|
||||
} // @TODO move outside
|
||||
}
|
||||
|
||||
/// Extract `String` from C-based
|
||||
/// [Variant](https://docs.gtk.org/glib/struct.Variant.html)
|
||||
|
|
@ -296,4 +298,4 @@ fn string_from_variant(variant: Option<&Variant>) -> String {
|
|||
.expect("Variant required for this action")
|
||||
.get::<String>()
|
||||
.expect("Parameter does not match `String`")
|
||||
} // @TODO move outside
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue