diff options
author | Cyril Plisko <cyril.plisko@mountall.com> | 2018-09-26 11:34:24 +0300 |
---|---|---|
committer | Cyril Plisko <cyril.plisko@mountall.com> | 2018-09-26 11:34:24 +0300 |
commit | 61ee63368c8372b50b1470bdef275218d8ea61ab (patch) | |
tree | 67a502277bf717da1040c2379d63a84da5562369 | |
parent | e145b80799e17650651e8d9f3dfa196c969d9380 (diff) |
clippy: default_trait_access
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -119,14 +119,14 @@ impl Default for Pager { impl Pager { /// Creates new instance of `Pager` with default settings pub fn new() -> Self { - Default::default() + Self::default() } /// Creates new instance of pager using `env` environment variable instead of PAGER pub fn with_env(env: &str) -> Self { Self { pager: env::var_os(env), - ..Default::default() + ..Self::default() } } @@ -143,7 +143,7 @@ impl Pager { let default_pager = Some(pager.into()); Self { default_pager, - ..Default::default() + ..Self::default() } } @@ -151,7 +151,7 @@ impl Pager { pub fn with_pager(pager: &str) -> Self { Self { pager: Some(pager.into()), - ..Default::default() + ..Self::default() } } |