diff options
author | 2023-01-03 11:23:58 -0700 | |
---|---|---|
committer | 2023-01-04 12:41:23 -0700 | |
commit | d8536e62484a2f46d0ad9b49b7141f6507d663e3 (patch) | |
tree | dd40e941ea50cb3dfa45b545de4ebff9ff95a4a9 /native/src/widget/checkbox.rs | |
parent | f641e20f7fb43932bb30776c607fe3745311ccd6 (diff) | |
download | iced-d8536e62484a2f46d0ad9b49b7141f6507d663e3.tar.gz iced-d8536e62484a2f46d0ad9b49b7141f6507d663e3.tar.bz2 iced-d8536e62484a2f46d0ad9b49b7141f6507d663e3.zip |
use same name & order for checkbox::new and helper
The helper function for the checkbox widget switched the order
and name of the arguments passed when creating the checkbox
widget. This just standardizes the order whether the dev is using
the helper or the associated function.
Continuation of https://github.com/iced-rs/iced/pull/1616
Diffstat (limited to 'native/src/widget/checkbox.rs')
-rw-r--r-- | native/src/widget/checkbox.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/native/src/widget/checkbox.rs b/native/src/widget/checkbox.rs index bec5c448..96fd60ba 100644 --- a/native/src/widget/checkbox.rs +++ b/native/src/widget/checkbox.rs @@ -67,7 +67,7 @@ where /// * a function that will be called when the [`Checkbox`] is toggled. It /// will receive the new state of the [`Checkbox`] and must produce a /// `Message`. - pub fn new<F>(is_checked: bool, label: impl Into<String>, f: F) -> Self + pub fn new<F>(label: impl Into<String>, is_checked: bool, f: F) -> Self where F: 'a + Fn(bool) -> Message, { |