Skip to content

Commit 40617fd

Browse files
committed
refactor: shorten, consistency
1 parent 1590819 commit 40617fd

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/app.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ impl App {
154154

155155
impl<SizeGetter> CreateReporter<false> for SizeGetter
156156
where
157-
SizeGetter: GetSizeUtils,
157+
Self: GetSizeUtils,
158158
{
159159
type Reporter = ErrorOnlyReporter<fn(ErrorReport)>;
160160
fn create_reporter(report_error: fn(ErrorReport)) -> Self::Reporter {
@@ -164,12 +164,12 @@ impl App {
164164

165165
impl<SizeGetter> CreateReporter<true> for SizeGetter
166166
where
167-
SizeGetter: GetSizeUtils,
168-
SizeGetter::Size: Into<u64> + Send + Sync,
169-
ProgressReport<SizeGetter::Size>: Default + 'static,
170-
u64: Into<SizeGetter::Size>,
167+
Self: GetSizeUtils,
168+
Self::Size: Into<u64> + Send + Sync,
169+
ProgressReport<Self::Size>: Default + 'static,
170+
u64: Into<Self::Size>,
171171
{
172-
type Reporter = ProgressAndErrorReporter<SizeGetter::Size, fn(ErrorReport)>;
172+
type Reporter = ProgressAndErrorReporter<Self::Size, fn(ErrorReport)>;
173173
fn create_reporter(report_error: fn(ErrorReport)) -> Self::Reporter {
174174
ProgressAndErrorReporter::new(
175175
ProgressReport::TEXT,

0 commit comments

Comments
 (0)