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/structured_values/file_name.rs | |
parent | 252a6467abbc57d67dbad4143d06f6d54660e769 (diff) |
Apply suggestions from clippy.
Diffstat (limited to 'src/structured_values/file_name.rs')
-rw-r--r-- | src/structured_values/file_name.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/structured_values/file_name.rs b/src/structured_values/file_name.rs index 31d8c71..09467eb 100644 --- a/src/structured_values/file_name.rs +++ b/src/structured_values/file_name.rs @@ -204,7 +204,7 @@ impl NtfsFileName { } /// Gets the file name and returns it wrapped in an [`NtfsString`]. - pub fn name<'s>(&'s self) -> NtfsString<'s> { + pub fn name(&self) -> NtfsString { NtfsString(&self.name) } @@ -243,7 +243,7 @@ impl NtfsFileName { if total_size > data_size { return Err(NtfsError::InvalidStructuredValueSize { - position: position, + position, ty: NtfsAttributeType::FileName, expected: data_size, actual: total_size, |