From 79bee50349dc0cffc5213546153713132401c226 Mon Sep 17 00:00:00 2001 From: SimonVandeVyver Date: Thu, 12 Sep 2024 16:39:42 +0200 Subject: [PATCH] add lifetime parameter to ProteinTextSlice --- text-compression/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text-compression/src/lib.rs b/text-compression/src/lib.rs index cac302f..4866a6c 100644 --- a/text-compression/src/lib.rs +++ b/text-compression/src/lib.rs @@ -198,7 +198,7 @@ impl<'a> ProteinTextSlice<'a> { /// # Returns /// /// An instance of `ProteinTextSlice` - pub fn new(text: &'a ProteinText, start: usize, end: usize) -> ProteinTextSlice { + pub fn new(text: &'a ProteinText, start: usize, end: usize) -> ProteinTextSlice<'a> { Self { text, start, end } }