Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
allan2 committed May 23, 2024
1 parent d59aadc commit 591ddab
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gio/src/action_entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use glib::{prelude::*, Variant, VariantTy, VariantType};

use crate::{ActionMap, SimpleAction};


#[doc(alias = "GActionEntry")]
pub struct ActionEntry<O>
where
Expand Down Expand Up @@ -137,12 +136,14 @@ mod tests {
let app = crate::Application::new(None, Default::default());

app.add_action_entries(vec![
ActionEntry::builder().name("close")
ActionEntry::builder()
.name("close")
.activate(move |_app, _, _| {
//Do something
})
.build(),
ActionEntry::builder().name("enable")
ActionEntry::builder()
.name("enable")
.state(true.to_variant())
.change_state(move |_app, _, _| {
//Do something
Expand Down

0 comments on commit 591ddab

Please sign in to comment.