summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyril Plisko <cyril.plisko@mountall.com>2017-12-11 20:36:54 +0200
committerCyril Plisko <cyril.plisko@mountall.com>2017-12-11 20:36:54 +0200
commitcc1a7ebd8e11174b718f03489fa4e0f01bc26441 (patch)
tree1e3b091d14669a8dacafbe78286dc9d5d97e131e
parenta7abe5aaa6b721aae36ee19fb3dff36215b6e6fb (diff)
Drop `env` field as it is unused anywhere
-rw-r--r--src/lib.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 9d28e3f..9933f36 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -81,7 +81,6 @@ const DEFAULT_PAGER_ENV: &str = "PAGER";
#[derive(Debug)]
pub struct Pager {
pager: Option<OsString>,
- env: Option<String>,
on: bool,
skip_on_notty: bool,
}
@@ -90,7 +89,6 @@ impl Default for Pager {
fn default() -> Self {
Self {
pager: None,
- env: None,
on: true,
skip_on_notty: false,
}
@@ -109,7 +107,6 @@ impl Pager {
Self {
pager: pager,
- env: String::from(env).into(),
..Default::default()
}
}