This is not a bottleneck

This commit is contained in:
David Tolnay 2017-04-13 16:46:38 -07:00
parent 0e7c027ff1
commit dfea7ec939
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

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()
}