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:
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)