Skip to content

Commit b3b482c

Browse files
committed
refactor: just use default
1 parent f0f5747 commit b3b482c

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

src/app.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ impl App {
206206
where
207207
SizeGetter: GetSizeUtils,
208208
SizeGetter::Size: Send + Sync + 'static,
209-
u64: Into<SizeGetter::Size>, // TODO: remove this line after implementing `Size::ZERO`
210209
{
211210
type Hook = hook::RecordHardLink<'static, Self::Size>;
212211
fn create_hook(record: &'static hook::RecordHardLinkStorage<Self::Size>) -> Self::Hook {

src/app/sub.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ impl<'a, Size> DeduplicateHardlinkSizes<Size> for hook::RecordHardLink<'a, Size>
191191
where
192192
DataTree<OsStringDisplay, Size>: Send,
193193
Size: size::Size + Sync,
194-
u64: Into<Size>, // TODO: replace `0.into()` with `Size::ZERO`
195194
{
196195
type HardlinkRecord = &'a hook::RecordHardLinkStorage<Size>;
197196
type DeduplicationReport = &'a hook::RecordHardLinkStorage<Size>;
@@ -226,7 +225,7 @@ where
226225
Some((*size, links))
227226
})
228227
.fold(
229-
(0, 0, 0.into()),
228+
(0, 0, Size::default()),
230229
|(inodes, total_links, total_size), (size, links)| {
231230
(inodes + 1, total_links + links, total_size + size)
232231
},

0 commit comments

Comments
 (0)