Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
  • Loading branch information
zhiburt committed Jul 24, 2023
1 parent d9c5514 commit cf36a1e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions tabled/src/settings/width/min_width.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ where
Self {
width,
fill: ' ',
_priority: PhantomData::default(),
_priority: PhantomData,
}
}
}
Expand All @@ -97,7 +97,7 @@ impl<W, P> MinWidth<W, P> {
MinWidth {
fill: self.fill,
width: self.width,
_priority: PhantomData::default(),
_priority: PhantomData,
}
}
}
Expand Down
10 changes: 5 additions & 5 deletions tabled/src/settings/width/truncate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ where
width,
multiline: false,
suffix: None,
_priority: PhantomData::default(),
_priority: PhantomData,
}
}
}
Expand All @@ -114,7 +114,7 @@ impl<'a, W, P> Truncate<'a, W, P> {
width: self.width,
multiline: self.multiline,
suffix: Some(suff),
_priority: PhantomData::default(),
_priority: PhantomData,
}
}

Expand All @@ -127,7 +127,7 @@ impl<'a, W, P> Truncate<'a, W, P> {
width: self.width,
multiline: self.multiline,
suffix: Some(suff),
_priority: PhantomData::default(),
_priority: PhantomData,
}
}

Expand All @@ -151,7 +151,7 @@ impl<'a, W, P> Truncate<'a, W, P> {
width: self.width,
multiline: self.multiline,
suffix: Some(suff),
_priority: PhantomData::default(),
_priority: PhantomData,
}
}
}
Expand All @@ -170,7 +170,7 @@ impl<'a, W, P> Truncate<'a, W, P> {
width: self.width,
multiline: self.multiline,
suffix: self.suffix,
_priority: PhantomData::default(),
_priority: PhantomData,
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions tabled/src/settings/width/wrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl<W> Wrap<W> {
Wrap {
width,
keep_words: false,
_priority: PhantomData::default(),
_priority: PhantomData,
}
}
}
Expand All @@ -76,7 +76,7 @@ impl<W, P> Wrap<W, P> {
Wrap {
width: self.width,
keep_words: self.keep_words,
_priority: PhantomData::default(),
_priority: PhantomData,
}
}

Expand Down

0 comments on commit cf36a1e

Please sign in to comment.