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

env as Option

parent 3deb1204
......@@ -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,
}
}
......
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