Update 'src/lib.rs'
This commit is contained in:
parent
5fe419db69
commit
686955ceca
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue