This is not a bottleneck
This commit is contained in:
parent
0e7c027ff1
commit
dfea7ec939
@ -40,7 +40,6 @@ pub struct Encode {
|
||||
}
|
||||
|
||||
impl Encode {
|
||||
// FIXME: use this from_utf8_unchecked, since we know it can never fail
|
||||
pub fn as_str(&self) -> &str {
|
||||
str::from_utf8(&self.buf[self.pos..]).unwrap()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user