From d62bb107f231c3d0ebf47b7c91f26348213d8386 Mon Sep 17 00:00:00 2001 From: Matan Kushner Date: Fri, 12 Apr 2019 19:18:47 -0400 Subject: Remove unnecessary lifetimes --- src/modules/directory.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/directory.rs') diff --git a/src/modules/directory.rs b/src/modules/directory.rs index b9d9f09bf..6ea6f71c3 100644 --- a/src/modules/directory.rs +++ b/src/modules/directory.rs @@ -49,7 +49,7 @@ pub fn segment(_: &ArgMatches) -> Segment { } /// Get the root directory of a git repo -fn get_repo_root<'a>(repo: &'a Repository) -> &'a Path { +fn get_repo_root(repo: &Repository) -> &Path { if repo.is_bare() { // Bare repos will return the repo root repo.path() -- cgit v1.2.3