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 } }