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:
authorColin Finck <colin@reactos.org>2021-07-21 21:32:31 +0300
committerColin Finck <colin@reactos.org>2021-07-21 21:32:31 +0300
commit831f6a6152a9e98c16845169985e396b1c04b139 (patch)
tree4367f2f7db43c97b98cbee99b9467f17185f45cd /src/index_record.rs
parentc76c87e1cf3164da01e872f26e3160a1d80bdb7f (diff)
Remove "Ntfs" prefix from `NtfsError` members, make it non-exhaustive.
Diffstat (limited to 'src/index_record.rs')
-rw-r--r--src/index_record.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/index_record.rs b/src/index_record.rs
index b6120c1..e6fccd3 100644
--- a/src/index_record.rs
+++ b/src/index_record.rs
@@ -116,7 +116,7 @@ impl<'n> NtfsIndexRecord<'n> {
if signature == expected {
Ok(())
} else {
- Err(NtfsError::InvalidNtfsIndexSignature {
+ Err(NtfsError::InvalidIndexSignature {
position: self.record.position(),
expected,
actual: *signature,
@@ -131,7 +131,7 @@ impl<'n> NtfsIndexRecord<'n> {
// the size defined for all index records of this index.
let total_allocated_size = INDEX_RECORD_HEADER_SIZE + self.index_allocated_size();
if total_allocated_size > index_record_size {
- return Err(NtfsError::InvalidNtfsIndexAllocatedSize {
+ return Err(NtfsError::InvalidIndexAllocatedSize {
position: self.record.position(),
expected: index_record_size,
actual: total_allocated_size,
@@ -142,7 +142,7 @@ impl<'n> NtfsIndexRecord<'n> {
// larger than the total allocated size.
let total_used_size = INDEX_RECORD_HEADER_SIZE + self.index_used_size();
if total_used_size > total_allocated_size {
- return Err(NtfsError::InvalidNtfsIndexUsedSize {
+ return Err(NtfsError::InvalidIndexUsedSize {
position: self.record.position(),
expected: total_allocated_size,
actual: total_used_size,