diff options
author | Cyril Plisko <cyril.plisko@mountall.com> | 2017-07-04 22:01:53 +0300 |
---|---|---|
committer | Cyril Plisko <cyril.plisko@mountall.com> | 2017-07-04 22:01:53 +0300 |
commit | e6071702c9da214986f433878332f727301d8cf3 (patch) | |
tree | fa10d2d18bb7e326c04a26228965de384ddd327e | |
parent | 3deb12046a30e23900b734abbf3f5bb6dfe8a8df (diff) |
env as Option
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, } } |