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()))