Skip to content

Commit

Permalink
chore: Allow trait to be unused for some backends
Browse files Browse the repository at this point in the history
  • Loading branch information
foresterre committed Jun 10, 2024
1 parent 1d952fd commit 69f3d67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,12 @@ pub mod io;
/// [`MiniViewError`]: errors/enum.MiniViewError.html
pub type MVResult<T> = Result<T, MiniViewError>;

#[allow(unused)] // Only used by some backends
trait ResizableWhen {
fn resizable_when<P: Fn() -> bool>(self, predicate: P) -> Self;
}

#[allow(unused)] // Only used by some backends
trait FullscreenWhen {
fn fullscreen_when<P: Fn() -> bool>(self, predicate: P) -> Self;
}
Expand Down

0 comments on commit 69f3d67

Please sign in to comment.