Skip to content

Commit a7165e1

Browse files
committed
fix: type error
1 parent d85a8ec commit a7165e1

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

src/hook/record_hardlink.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,14 @@ impl<'a, Size> RecordHardLink<'a, Size> {
2121

2222
impl<'a, Size: Eq + Debug> Hook<Size> for RecordHardLink<'a, Size> {
2323
fn run_hook(&self, argument: HookArgument<Size>) {
24-
let HookArgument {
25-
path,
26-
metadata,
27-
size,
28-
} = argument;
24+
let HookArgument { path, stats, size } = argument;
2925

30-
if metadata.is_dir() || metadata.nlink() <= 1 {
26+
if stats.is_dir() || stats.nlink() <= 1 {
3127
return;
3228
}
3329

3430
self.storage
35-
.entry(metadata.ino())
31+
.entry(stats.ino())
3632
.and_modify(|(expected_size, paths)| {
3733
assert_eq!(
3834
size, *expected_size,

0 commit comments

Comments
 (0)