Commit fe169a53 authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui

get_action! no need to specify the type

we already cast it to a gio::SimpleAction
hence the compiler can figure out the type
parent 387f4ee0
Pipeline #157363 passed with stage
in 2 minutes and 44 seconds
......@@ -57,7 +57,7 @@ macro_rules! get_action {
}};
($actions:expr, $name:ident) => {
let $name: gio::SimpleAction = $actions
let $name = $actions
.lookup_action(stringify!($name))
.expect(&format!("Could not find action \"{}\"", stringify!($name)))
.downcast::<gio::SimpleAction>()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment