From 197dc03b566c38cbf5c5dd9551d27a25fd207ddd Mon Sep 17 00:00:00 2001 From: wiiznokes <78230769+wiiznokes@users.noreply.github.com> Date: Mon, 31 Jul 2023 05:14:18 +0200 Subject: [PATCH] Update modal.rs --- src/native/modal.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/native/modal.rs b/src/native/modal.rs index 446d52cd..7c700fcd 100644 --- a/src/native/modal.rs +++ b/src/native/modal.rs @@ -119,12 +119,14 @@ where } /// Sets the content alignment for the horizontal axis of the [`Modal`](Modal). + #[must_use] pub fn align_x(mut self, alignment: alignment::Horizontal) -> Self { self.horizontal_alignment = alignment; self } /// Sets the content alignment for the vertical axis of the [`Modal`](Modal). + #[must_use] pub fn align_y(mut self, alignment: alignment::Vertical) -> Self { self.vertical_alignment = alignment; self