Update 'src/lib.rs'
This commit is contained in:
parent
fd0231a558
commit
09055345fb
|
@ -80,7 +80,7 @@ impl <'a> LuaPattern<'a> {
|
|||
}
|
||||
|
||||
pub fn as_str(self) -> String {
|
||||
String::from_utf8_lossy(self.patt)
|
||||
String::from_utf8_lossy(self.patt).to_string()
|
||||
}
|
||||
|
||||
/// Match a slice of bytes with a pattern
|
||||
|
|
Loading…
Reference in a new issue