Skip to content

Commit

Permalink
Remove unnecessary de-reference
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-nitrokey committed Dec 14, 2023
1 parent a21f11a commit 0363d31
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/streaming/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,13 @@ pub fn move_file(

match from_location {
Location::Internal => {
move_file_step1(store, &**store.ifs(), from_path, to_location, to_path)
move_file_step1(store, store.ifs(), from_path, to_location, to_path)
}
Location::External => {
move_file_step1(store, &**store.efs(), from_path, to_location, to_path)
move_file_step1(store, store.efs(), from_path, to_location, to_path)
}
Location::Volatile => {
move_file_step1(store, &**store.vfs(), from_path, to_location, to_path)
move_file_step1(store, store.vfs(), from_path, to_location, to_path)
}
}
}
Expand All @@ -166,9 +166,9 @@ fn move_file_step1<S: LfsStorage>(
to_path: &Path,
) -> Result<(), Error> {
match to_location {
Location::Internal => move_file_step2(from_fs, from_path, &**store.ifs(), to_path),
Location::External => move_file_step2(from_fs, from_path, &**store.efs(), to_path),
Location::Volatile => move_file_step2(from_fs, from_path, &**store.vfs(), to_path),
Location::Internal => move_file_step2(from_fs, from_path, store.ifs(), to_path),
Location::External => move_file_step2(from_fs, from_path, store.efs(), to_path),
Location::Volatile => move_file_step2(from_fs, from_path, store.vfs(), to_path),
}
}

Expand Down

0 comments on commit 0363d31

Please sign in to comment.