From d62bb107f231c3d0ebf47b7c91f26348213d8386 Mon Sep 17 00:00:00 2001 From: Matan Kushner Date: Fri, 12 Apr 2019 19:18:47 -0400 Subject: [PATCH] Remove unnecessary lifetimes --- src/modules/directory.rs | 2 +- src/segment.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/directory.rs b/src/modules/directory.rs index b9d9f09b..6ea6f71c 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() diff --git a/src/segment.rs b/src/segment.rs index cca71cdd..1e42deb5 100644 --- a/src/segment.rs +++ b/src/segment.rs @@ -40,7 +40,7 @@ impl Segment { } } - pub fn set_style<'a, T>(&'a mut self, style: T) -> &'a mut Segment + pub fn set_style(&mut self, style: T) -> &mut Segment where T: Into