Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/ntfs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/structured_values/file_name.rs')
-rw-r--r--src/structured_values/file_name.rs4
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,