Update 'src/lib.rs'

This commit is contained in:
delta 2022-11-21 15:27:19 -06:00
parent fd2800c1d3
commit 82b68b283f
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ impl <'a> LuaPattern<'a> {
LuaPattern::from_bytes_try(bytes).expect("bad pattern")
}
pub fn as_string(self) -> String {
pub fn as_string(&self) -> String {
String::from_utf8_lossy(self.patt).to_string()
}