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')
-rw-r--r--src/structured_values/attribute_list.rs2
-rw-r--r--src/structured_values/file_name.rs4
-rw-r--r--src/structured_values/volume_name.rs2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/structured_values/attribute_list.rs b/src/structured_values/attribute_list.rs
index 636eb98..4a8c661 100644
--- a/src/structured_values/attribute_list.rs
+++ b/src/structured_values/attribute_list.rs
@@ -228,7 +228,7 @@ impl NtfsAttributeListEntry {
}
/// Gets the attribute name and returns it wrapped in an [`NtfsString`].
- pub fn name<'s>(&'s self) -> NtfsString<'s> {
+ pub fn name(&self) -> NtfsString {
NtfsString(&self.name)
}
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,
diff --git a/src/structured_values/volume_name.rs b/src/structured_values/volume_name.rs
index 55dbb8c..1e4d2a9 100644
--- a/src/structured_values/volume_name.rs
+++ b/src/structured_values/volume_name.rs
@@ -64,7 +64,7 @@ impl NtfsVolumeName {
}
/// Gets the volume name and returns it wrapped in an [`NtfsString`].
- pub fn name<'s>(&'s self) -> NtfsString<'s> {
+ pub fn name(&self) -> NtfsString {
NtfsString(&self.name)
}