This is not a bottleneck

This commit is contained in:
David Tolnay
2017-04-13 16:46:38 -07:00
parent 0e7c027ff1
commit dfea7ec939
-1
View File
@@ -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()
}