Fix warnings

This commit is contained in:
Carl Lerche
2017-06-27 12:23:57 -07:00
parent 79aa11ad32
commit fee43a09c8
17 changed files with 61 additions and 59 deletions

View File

@@ -8,9 +8,9 @@ pub struct ByteStr {
bytes: Bytes,
}
#[derive(Debug)]
pub struct FromUtf8Error {
err: Utf8Error,
val: Bytes,
}
impl ByteStr {
@@ -28,7 +28,6 @@ impl ByteStr {
if let Err(e) = str::from_utf8(&bytes[..]) {
return Err(FromUtf8Error {
err: e,
val: bytes,
});
}