Revert "Store::create() Make outgoing storeid object unstorified"

This reverts commit 41d7d1c213.
This commit is contained in:
Matthias Beyer 2016-07-04 12:46:06 +02:00
parent 31d5dac63d
commit a706680fd5

View file

@ -344,13 +344,10 @@ impl Store {
se se
}); });
id.unstorified(self) let mut fle = FileLockEntry::new(self, Entry::new(id));
.and_then(|id| { self.execute_hooks_for_mut_file(self.post_create_aspects.clone(), &mut fle)
let mut fle = FileLockEntry::new(self, Entry::new(id)); .map_err_into(SEK::PostHookExecuteError)
self.execute_hooks_for_mut_file(self.post_create_aspects.clone(), &mut fle) .map(|_| fle)
.map_err_into(SEK::PostHookExecuteError)
.map(|_| fle)
})
.map_err_into(SEK::CreateCallError) .map_err_into(SEK::CreateCallError)
} }