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

github.com/windirstat/RustyMft.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatthew seyer <matthew.seyer@gmail.com>2017-06-27 05:48:08 +0300
committermatthew seyer <matthew.seyer@gmail.com>2017-06-27 05:48:08 +0300
commitd6c5d03a2a306979e805e67c37850990e6cb0fdb (patch)
tree70a5735c11542445834c485515a1a84f1aae7510 /src/mft.rs
parente6387f97fc4af6561ffd7a860941499e5ed3bf2d (diff)
MFT Attributes structure restructure and serialization restructure
Diffstat (limited to 'src/mft.rs')
-rw-r--r--src/mft.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mft.rs b/src/mft.rs
index 639d221..5a182bb 100644
--- a/src/mft.rs
+++ b/src/mft.rs
@@ -74,7 +74,7 @@ impl MftHandler{
Some(mapping) => {
if mft_entry.is_dir() {
&self.path_enumerator.set_mapping(
- mft_entry.header.entry_reference.clone().unwrap(),
+ mft_entry.header.entry_reference.clone(),
mapping.clone()
);
}
@@ -96,7 +96,7 @@ impl MftHandler{
pub fn entry_from_buffer(&mut self, buffer: Vec<u8>, entry: u64) -> Result<MftEntry,MftError> {
let mft_entry = MftEntry::new(
buffer,
- Some(entry)
+ entry
)?;
Ok(mft_entry)