We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a6f8c8b + a4982d9 commit 239d25dCopy full SHA for 239d25d
1 file changed
metadata/src/lib.rs
@@ -13,7 +13,7 @@ use std::fmt;
13
use std::io;
14
use std::path::{Path, PathBuf};
15
use std::process::Command;
16
-use std::str::{self, Utf8Error};
+use std::str::Utf8Error;
17
18
#[derive(Debug)]
19
pub enum ErrorKind {
@@ -34,16 +34,7 @@ impl fmt::Display for ErrorKind {
34
}
35
36
37
-impl Error for ErrorKind {
38
- fn description(&self) -> &str {
39
- match self {
40
- ErrorKind::Encode(e) => e.description(),
41
- ErrorKind::Json(e) => e.description(),
42
- ErrorKind::Io(e) => e.description(),
43
- ErrorKind::Subprocess(s) => &s,
44
- }
45
46
-}
+impl Error for ErrorKind {}
47
48
impl From<Utf8Error> for ErrorKind {
49
fn from(e: Utf8Error) -> ErrorKind {
0 commit comments