Skip to content

Commit

Permalink
Merge pull request #1121 from foresterre/resizablewhen
Browse files Browse the repository at this point in the history
chore: Allow trait to be unused for some backends
  • Loading branch information
foresterre authored Jun 10, 2024
2 parents 1d952fd + 69f3d67 commit 4c7d5f3
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 4c7d5f3

Please sign in to comment.