Skip to content

Commit

Permalink
remove default value for required ParamSpecBuilder values
Browse files Browse the repository at this point in the history
  • Loading branch information
ranfdev committed Feb 18, 2022
1 parent c3792b0 commit 427ad4b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions glib/src/param_spec.rs
Expand Up @@ -945,7 +945,7 @@ impl ParamSpecEnum {
define_builder!(
ParamSpecEnum,
ParamSpecEnumBuilder,
enum_type: crate::Type = crate::Type::ENUM,
enum_type: crate::Type,
default_value: i32 = 0i32,
);

Expand Down Expand Up @@ -1002,7 +1002,7 @@ impl ParamSpecFlags {
define_builder!(
ParamSpecFlags,
ParamSpecFlagsBuilder,
flags_type: crate::Type = crate::Type::FLAGS,
flags_type: crate::Type,
default_value: u32 = 0u32,
);

Expand Down Expand Up @@ -1230,7 +1230,7 @@ impl ParamSpecBoxed {
define_builder!(
ParamSpecBoxed,
ParamSpecBoxedBuilder,
default_value: crate::Type = crate::Type::BOXED,
boxed_type: crate::Type,
);

define_param_spec!(
Expand Down Expand Up @@ -1357,7 +1357,7 @@ impl ParamSpecObject {
define_builder!(
ParamSpecObject,
ParamSpecObjectBuilder,
object_type: crate::Type = crate::Type::OBJECT,
object_type: crate::Type,
);

define_param_spec!(
Expand Down Expand Up @@ -1523,7 +1523,7 @@ impl ParamSpecGType {
define_builder!(
ParamSpecGType,
ParamSpecGTypeBuilder,
is_a_type: crate::Type,
is_a_type: crate::Type = crate::Type::NONE,
);

define_param_spec!(
Expand Down

0 comments on commit 427ad4b

Please sign in to comment.