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-06-29 21:57:13 +0300
committerColin Finck <colin@reactos.org>2021-06-29 22:36:13 +0300
commit9fa9dda7eede3ca5689e67ad6e7ca76398443603 (patch)
tree756bc4254257aead1e9f309f0de4e402a688a8ad
parent4aa6f36eec7e8d846d6f24048acf236fe30a0d35 (diff)
Upgrade dependencies and fix `displaydoc` error messages.
-rw-r--r--Cargo.toml4
-rw-r--r--src/error.rs10
2 files changed, 6 insertions, 8 deletions
diff --git a/Cargo.toml b/Cargo.toml
index e58fd73..1cd36f7 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -10,9 +10,9 @@ edition = "2018"
binread = { version = "2.1.1", features = ["const_generics"], default-features = false }
bitflags = "1.2.1"
chrono = { version = "0.4.19", optional = true }
-displaydoc = { version = "0.1.7", default-features = false }
+displaydoc = { version = "0.2.1", default-features = false }
enumn = "0.1.3"
-memoffset = "0.6.1"
+memoffset = "0.6.4"
[features]
default = ["std"]
diff --git a/src/error.rs b/src/error.rs
index 8015920..0d205e7 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -18,8 +18,7 @@ pub enum NtfsError {
},
/// The given buffer should have at least {expected} bytes, but it only has {actual} bytes
BufferTooSmall { expected: usize, actual: usize },
- /// The header of an NTFS data run should indicate a maximum byte count of {expected},
- /// but the header at byte position {position:#010x} indicates a byte count of {actual}
+ /// The header of an NTFS data run should indicate a maximum byte count of {expected}, but the header at byte position {position:#010x} indicates a byte count of {actual}
InvalidByteCountInDataRunHeader {
position: u64,
expected: u8,
@@ -41,7 +40,7 @@ pub enum NtfsError {
expected: &'static [u8],
actual: [u8; 4],
},
- /// The NTFS index record at byte position {position:#010x} should have a maximum of {expected} bytes, but it indicates {actual} bytes.
+ /// The NTFS index record at byte position {position:#010x} should have a maximum of {expected} bytes, but it indicates {actual} bytes
InvalidNtfsIndexSize {
position: u64,
expected: u32,
@@ -64,8 +63,7 @@ pub enum NtfsError {
expected: &'static [u8],
actual: [u8; 2],
},
- /// The VCN {vcn} read from the NTFS data run header at byte position {position:#010x}
- /// cannot be added to the LCN {previous_lcn} calculated from previous data runs
+ /// The VCN {vcn} read from the NTFS data run header at byte position {position:#010x} cannot be added to the LCN {previous_lcn} calculated from previous data runs
InvalidVcnInDataRunHeader {
position: u64,
vcn: Vcn,
@@ -75,7 +73,7 @@ pub enum NtfsError {
Io(binread::io::Error),
/// The Logical Cluster Number (LCN) {lcn} is too big to be processed
LcnTooBig { lcn: Lcn },
- /// The index root at byte position {position:#010x} is a large index, but no matching index allocation attribute was provided.
+ /// The index root at byte position {position:#010x} is a large index, but no matching index allocation attribute was provided
MissingIndexAllocation { position: u64 },
/// The cluster size is {actual} bytes, but the maximum supported one is {expected}
UnsupportedClusterSize { expected: u32, actual: u32 },