Fix some clippy lints (#292)
This commit can be replicated with `cargo +nightly clippy --fix -Z unstable-options`, plus an edit to fix another `return` missed by clippy.
This commit is contained in:
@@ -182,7 +182,7 @@ impl Error {
|
||||
pub fn kind(&self) -> ErrorKind {
|
||||
match self {
|
||||
Error::Status(_, _) => ErrorKind::HTTP,
|
||||
Error::Transport(Transport { kind: k, .. }) => k.clone(),
|
||||
Error::Transport(Transport { kind: k, .. }) => *k,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user