Skip to content

Commit

Permalink
add lifetime parameter to ProteinTextSlice
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonVandeVyver committed Sep 12, 2024
1 parent 1c44012 commit 79bee50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text-compression/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}

Expand Down

0 comments on commit 79bee50

Please sign in to comment.