implement Default traits

This commit is contained in:
yggverse 2025-01-12 14:08:30 +02:00
parent 1a0b31e695
commit 9b214b1469
55 changed files with 330 additions and 0 deletions

View file

@ -8,6 +8,12 @@ pub struct Action {
pub update: Rc<Update>,
}
impl Default for Action {
fn default() -> Self {
Self::new()
}
}
impl Action {
// Constructors

View file

@ -5,6 +5,12 @@ pub struct Update {
pub gobject: SimpleAction,
}
impl Default for Update {
fn default() -> Self {
Self::new()
}
}
impl Update {
// Constructors

View file

@ -8,6 +8,12 @@ pub struct Unsupported {
widget: Rc<Widget>,
}
impl Default for Unsupported {
fn default() -> Self {
Self::new()
}
}
impl Unsupported {
// Construct

View file

@ -12,6 +12,12 @@ pub struct Widget {
gobject: AlertDialog,
}
impl Default for Widget {
fn default() -> Self {
Self::new()
}
}
impl Widget {
// Constructors