Skip to content

Commit 5cc91f3

Browse files
authored
Merge pull request #30 from Hawk777/explicit-lifetime
Use an explicit lifetime parameter for clarity
2 parents c0b655a + 84f3d39 commit 5cc91f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/myers/slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ impl<'a> FileSlice<'a> {
2727
}
2828
}
2929

30-
pub fn borrow(&mut self) -> FileSlice {
30+
pub fn borrow(&mut self) -> FileSlice<'_> {
3131
FileSlice {
3232
tokens: self.tokens,
3333
changed: self.changed,

0 commit comments

Comments
 (0)