From a6ed8e1080d044a0e10ecce743dc0d87d6df7864 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 29 Nov 2015 12:09:30 +0100 Subject: [PATCH] Pass id as &FileID in StorageBackend::get_file_by_id() --- 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 5bc27103..d4e6c61c 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<'a, HP>(&self, m: &'a Module, 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);