Skip to content

Commit

Permalink
Removing another const mut reference usage
Browse files Browse the repository at this point in the history
Trying to keep the MSRV
  • Loading branch information
ecton committed Jan 5, 2025
1 parent 934d94d commit 8acd9fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1352,7 +1352,7 @@ impl<'context> WidgetContext<'context> {

/// Returns an exclusive reference to the window containing this widget.
#[must_use]
pub const fn window_mut(&mut self) -> &mut dyn PlatformWindow {
pub fn window_mut(&mut self) -> &mut dyn PlatformWindow {
self.window
}

Expand Down

0 comments on commit 8acd9fd

Please sign in to comment.