Skip to content

Commit

Permalink
cupertino: Add #[must_use] to a self function
Browse files Browse the repository at this point in the history
  • Loading branch information
Luni-4 committed Jul 12, 2023
1 parent 8de5a76 commit 0d25347
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/native/cupertino/cupertino_button.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ where
}

/// Sets the `colour` of the [`CupertinoButton`](CupertinoButton).
#[must_use]
pub fn colour(mut self, colour: Option<Color>) -> Self {
self.colour = colour;
self
Expand Down

0 comments on commit 0d25347

Please sign in to comment.