From 3ff68bfaf8a8a415d83301e7594744cdc81e053f Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Sat, 27 Feb 2021 22:22:33 -0500 Subject: [PATCH] remove unnecessarily lifetimes --- src/config.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.rs b/src/config.rs index a730f16..da25150 100644 --- a/src/config.rs +++ b/src/config.rs @@ -340,11 +340,11 @@ impl<'a> GitConfig<'a> { /// section and subsection, or if no instance of the section and subsections /// exist. pub fn get_raw_multi_value<'b>( - &'a self, + &self, section_name: &'b str, subsection_name: Option<&'b str>, key: &'b str, - ) -> Result>, GitConfigError<'b>> { + ) -> Result>, GitConfigError<'b>> { let key = key; let mut values = vec![]; for section_id in self.get_section_ids_by_name_and_subname(section_name, subsection_name)? { @@ -464,7 +464,7 @@ impl<'a> GitConfig<'a> { } fn get_section_ids_by_name_and_subname<'b>( - &'a self, + &self, section_name: &'b str, subsection_name: Option<&'b str>, ) -> Result<&[SectionId], GitConfigError<'b>> {