summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 9f4e020..0da6a88 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -50,7 +50,7 @@ const DEFAULT_PAGER_ENV: &str = "PAGER";
#[derive(Debug, Default)]
pub struct Pager {
pager: Option<OsString>,
- env: String,
+ env: Option<String>,
on: bool,
}
@@ -66,7 +66,7 @@ impl Pager {
Pager {
pager: pager,
- env: env.into(),
+ env: String::from(env).into(),
on: true,
}
}