Skip to content

Commit faf0177

Browse files
committed
Fix compiler warning.
1 parent f3a6eb3 commit faf0177

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index_str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl<'a> AsRef<[u8]> for IndexStr<'a> {
144144
}
145145

146146
impl<'a> From<&'a [u8]> for IndexStr<'a> {
147-
fn from(s: &[u8]) -> IndexStr {
147+
fn from(s: &'a [u8]) -> IndexStr<'a> {
148148
IndexStr::new(s)
149149
}
150150
}

0 commit comments

Comments
 (0)