Commit 2c56f027 authored by Cyril Plisko's avatar Cyril Plisko 🤔

Reuse Pager::env() for default ::new()

parent a5f4c771
Pipeline #4074799 passed with stage
in 153 minutes and 19 seconds
......@@ -53,13 +53,7 @@ pub struct Pager {
impl Pager {
/// Creates new instance of pager with default settings
pub fn new() -> Self {
let pager = utils::find_pager(DEFAULT_PAGER_ENV);
Pager {
pager: pager,
env: DEFAULT_PAGER_ENV.into(),
ok: true,
/// Creates new instance of pager using `env` environment variable instead of PAGER
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