From 3041a575f9c7731f5b16c55fffb53dfcda4cbd60 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sun, 8 Oct 2023 14:13:02 -0400 Subject: [PATCH] Fix lifetimes. --- src/types/object.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/types/object.rs b/src/types/object.rs index 270ecdb..2397317 100644 --- a/src/types/object.rs +++ b/src/types/object.rs @@ -668,17 +668,17 @@ pub enum LinkType<'s> { impl<'s> RegularLink<'s> { /// Orgify the raw_link if it contains line breaks. - pub fn get_raw_link(&'s self) -> Cow<'s, str> { + pub fn get_raw_link<'b>(&'b self) -> Cow<'b, str> { coalesce_whitespace_if_line_break(&self.raw_link) } /// Orgify the path if it contains line breaks. - pub fn get_path(&'s self) -> Cow<'s, str> { + pub fn get_path<'b>(&'b self) -> Cow<'b, str> { coalesce_whitespace_if_line_break(&self.path) } /// Orgify the search_option if it contains line breaks. - pub fn get_search_option(&'s self) -> Option> { + pub fn get_search_option<'b>(&'b self) -> Option> { self.search_option .as_ref() .map(|search_option| coalesce_whitespace_if_line_break(search_option.borrow()))