Pass id as &FileID in StorageBackend::get_file_by_id()

This commit is contained in:
Matthias Beyer 2015-11-29 12:09:30 +01:00
parent 103cba0c27
commit a6ed8e1080

View file

@ -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<HP>) -> Option<File<'a>>
pub fn get_file_by_id<'a, HP>(&self, m: &'a Module, id: &FileID, p: &Parser<HP>) -> Option<File<'a>>
where HP: FileHeaderParser
{
debug!("Searching for file with id '{}'", id);