Skip to content

Commit 0a6925f

Browse files
committed
dir/gen2: use &self shorthand
Signed-off-by: Daniel Maslowski <[email protected]>
1 parent bdd48c0 commit 0a6925f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dir/gen2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ impl Directory {
339339
}
340340

341341
/// Get the offset ranges of the chunks.
342-
fn chunks_as_ranges(self: &Self, chunks: &Vec<u32>, stream_end: usize) -> Vec<Range<usize>> {
342+
fn chunks_as_ranges(&self, chunks: &Vec<u32>, stream_end: usize) -> Vec<Range<usize>> {
343343
// NOTE: This is the end of the directory.
344344
// me_cleaner uses the end of the ME region.
345345
let dir_end = self.offset + self.size;
@@ -430,7 +430,7 @@ impl Directory {
430430

431431
impl Removables for Directory {
432432
/// Removable ranges relative to the start of the Directory
433-
fn removables(self: &Self, retention_list: &Vec<String>) -> Vec<Range<usize>> {
433+
fn removables(&self, retention_list: &Vec<String>) -> Vec<Range<usize>> {
434434
use log::{debug, info, warn};
435435
let debug = false;
436436
let mut removables = vec![];

0 commit comments

Comments
 (0)