From 86286cce1b19418a94c457241fa59084102d5622 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 24 Nov 2015 19:47:04 +0100 Subject: [PATCH] Remove livetimes --- src/module/mod.rs | 2 -- src/storage/backend.rs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/module/mod.rs b/src/module/mod.rs index e846cd57..bc7e9065 100644 --- a/src/module/mod.rs +++ b/src/module/mod.rs @@ -7,10 +7,8 @@ use std::result::Result; use storage::backend::StorageBackend; use self::command::ExecutableCommand; -use module::todo::TodoModule; mod command; -pub mod todo; pub mod bm; #[derive(Debug)] diff --git a/src/storage/backend.rs b/src/storage/backend.rs index 077cf8b4..9fe06952 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(&self, id: FileID, p: &Parser) -> Option where HP: FileHeaderParser { debug!("Searching for file with id '{}'", id);