Update 'src/lib.rs'
This commit is contained in:
parent
fd2800c1d3
commit
82b68b283f
|
@ -79,7 +79,7 @@ impl <'a> LuaPattern<'a> {
|
||||||
LuaPattern::from_bytes_try(bytes).expect("bad pattern")
|
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()
|
String::from_utf8_lossy(self.patt).to_string()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue