summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyril Plisko <cyril.plisko@mountall.com>2018-09-26 11:34:24 +0300
committerCyril Plisko <cyril.plisko@mountall.com>2018-09-26 11:34:24 +0300
commit61ee63368c8372b50b1470bdef275218d8ea61ab (patch)
tree67a502277bf717da1040c2379d63a84da5562369
parente145b80799e17650651e8d9f3dfa196c969d9380 (diff)
clippy: default_trait_access
-rw-r--r--src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 36adbf5..47b68e0 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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()
}
}