Commit e6b3f1ca authored by Cyril Plisko's avatar Cyril Plisko 🤔

Drop 'Pager::force_on_notty()'

parent 177ddf19
......@@ -134,15 +134,6 @@ impl Pager {
}
}
/// Instructs `Pager` to force invoking pager even if output is not a `tty`
#[doc(hidden)]
pub fn force_on_notty(self) -> Self {
Self {
skip_on_notty: false,
..self
}
}
/// Gives quick assessment of successful `Pager` setup
pub fn is_on(&self) -> bool {
self.on
......
......@@ -19,10 +19,3 @@ fn skip_on_notty() {
pager.setup();
assert!(!pager.is_on());
}
#[test]
fn force_on_notty() {
let mut pager = Pager::new().force_on_notty();
pager.setup();
assert!(pager.is_on());
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment