diff options
author | Colin Finck <colin@reactos.org> | 2022-01-14 09:23:58 +0300 |
---|---|---|
committer | Colin Finck <colin@reactos.org> | 2022-01-14 09:23:58 +0300 |
commit | bbe333090d84745f99a7ee117baab3fa7d115b16 (patch) | |
tree | cfbcdad684cca6aef06792757b194d866cb48c35 /src/ntfs.rs | |
parent | 252a6467abbc57d67dbad4143d06f6d54660e769 (diff) |
Apply suggestions from clippy.
Diffstat (limited to 'src/ntfs.rs')
-rw-r--r-- | src/ntfs.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ntfs.rs b/src/ntfs.rs index ea56716..973bd2b 100644 --- a/src/ntfs.rs +++ b/src/ntfs.rs @@ -87,7 +87,7 @@ impl Ntfs { // The MFT may be split into multiple data runs, referenced by its $DATA attribute. // We therefore read it just like any other non-resident attribute value. // However, this code assumes that the MFT does not have an Attribute List! - let mft = NtfsFile::new(&self, fs, self.mft_position, 0)?; + let mft = NtfsFile::new(self, fs, self.mft_position, 0)?; let mft_data_attribute = mft .attributes_raw() .find(|attribute| { @@ -107,7 +107,7 @@ impl Ntfs { .data_position() .ok_or(NtfsError::InvalidFileRecordNumber { file_record_number })?; - NtfsFile::new(&self, fs, position, file_record_number) + NtfsFile::new(self, fs, position, file_record_number) } /// Returns the size of a File Record of this NTFS filesystem, in bytes. |