From 593e98ac5d992c406ca3aa13424b1b3fe2e30392 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 28 Nov 2015 12:44:03 +0100 Subject: [PATCH] A File is bound to a Module A File object must be bound to a Module, as one Module owns the File. This way we can use the Module internally to build the file path later. --- src/storage/backend.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/backend.rs b/src/storage/backend.rs index f9529aef..ccc194a7 100644 --- a/src/storage/backend.rs +++ b/src/storage/backend.rs @@ -189,7 +189,7 @@ impl StorageBackend { * TODO: Needs refactoring, as there might be an error when reading from * disk OR the id just does not exist. */ - pub fn get_file_by_id(&self, id: FileID, p: &Parser) -> Option + pub fn get_file_by_id<'a, HP>(&self, m: &'a Module, id: FileID, p: &Parser) -> Option> where HP: FileHeaderParser { debug!("Searching for file with id '{}'", id);