optimize bytes conversion utils
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
f43c09b05d
commit
0613140130
3 changed files with 26 additions and 18 deletions
|
@ -28,6 +28,12 @@ pub enum Error {
|
|||
Fmt(#[from] fmt::Error),
|
||||
#[error("I/O error: {0}")]
|
||||
Io(#[from] std::io::Error),
|
||||
#[error("{0}")]
|
||||
Utf8Error(#[from] std::str::Utf8Error),
|
||||
#[error("{0}")]
|
||||
FromUtf8Error(#[from] std::string::FromUtf8Error),
|
||||
#[error("{0}")]
|
||||
TryFromSliceError(#[from] std::array::TryFromSliceError),
|
||||
|
||||
// third-party
|
||||
#[error("Regex error: {0}")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue