Update 'src/lib.rs'

This commit is contained in:
delta 2022-11-21 15:19:41 -06:00
parent 5fe419db69
commit 686955ceca

View file

@ -80,7 +80,7 @@ impl <'a> LuaPattern<'a> {
}
pub fn as_str(self) -> &'a str {
String::from_utf8_lossy(self.patt)
&'a String::from_utf8_lossy(self.patt)
}
/// Match a slice of bytes with a pattern