Remove lifetimes from Runtime struct

This commit is contained in:
Matthias Beyer 2016-07-26 14:41:40 +02:00
parent 068c731857
commit ba1b4682d7
2 changed files with 4 additions and 4 deletions

View file

@ -26,7 +26,7 @@ use vcs::git::runtime::Runtime;
pub struct CreateHook<'a> {
storepath: &'a PathBuf,
runtime: Runtime<'a>,
runtime: Runtime,
position: HookPosition,
}

View file

@ -12,14 +12,14 @@ use libimagstore::hook::result::HookResult;
use vcs::git::result::Result;
use vcs::git::error::{MapErrInto, GitHookErrorKind as GHEK};
pub struct Runtime<'a> {
pub struct Runtime {
repository: Option<Repository>,
config: Option<Value>,
}
impl<'a> Runtime<'a> {
impl Runtime {
pub fn new(storepath: &PathBuf) -> Runtime<'a> {
pub fn new(storepath: &PathBuf) -> Runtime {
Runtime {
repository: match Repository::open(storepath) {
Ok(r) => Some(r),