Skip to content

Commit cb6bc12

Browse files
committed
fix mismatched lifetime
1 parent fac0fa3 commit cb6bc12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/query_result.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ impl QueryResult {
2121
String::from_utf8(buf.to_vec()).map_err(Error::NonUtf8Sequence)
2222
}
2323

24-
pub fn data_utf8_lossy(&self) -> Cow<str> {
24+
pub fn data_utf8_lossy(&self) -> Cow<'_, str> {
2525
String::from_utf8_lossy(self.data_ref())
2626
}
2727

0 commit comments

Comments
 (0)