Skip to content

Commit

Permalink
Missing pub
Browse files Browse the repository at this point in the history
  • Loading branch information
Legend-Master committed Nov 5, 2024
1 parent 86ef220 commit e880df2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/tauri/src/window/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ impl<'a, R: Runtime, M: Manager<R>> WindowBuilder<'a, R, M> {
/// - **Linux:** Prevent overflowing the monitor instead of workarea
/// - **iOS / Android:** Unsupported.
#[must_use]
fn prevent_overflow(mut self) -> Self {
pub fn prevent_overflow(mut self) -> Self {
self.window_builder = self.window_builder.prevent_overflow();
self
}
Expand All @@ -492,7 +492,7 @@ impl<'a, R: Runtime, M: Manager<R>> WindowBuilder<'a, R, M> {
/// - **Linux:** Prevent overflowing the monitor instead of workarea
/// - **iOS / Android:** Unsupported.
#[must_use]
fn prevent_overflow_with_margin(mut self, margin: Size) -> Self {
pub fn prevent_overflow_with_margin(mut self, margin: Size) -> Self {
self.window_builder = self.window_builder.prevent_overflow_with_margin(margin);
self
}
Expand Down

0 comments on commit e880df2

Please sign in to comment.