Skip to content

Commit 8b6aef9

Browse files
committed
Fix clippy::match_ref_pats
1 parent 05c2bab commit 8b6aef9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ pub fn download_file_with_resume(
136136
Ok(_) => Ok(()),
137137
Err(e) => {
138138
let is_client_error = match e.kind() {
139-
&ErrorKind::Download(DEK::HttpStatus(400..=499)) => true,
140-
&ErrorKind::Download(DEK::FileNotFound) => true,
139+
ErrorKind::Download(DEK::HttpStatus(400..=499)) => true,
140+
ErrorKind::Download(DEK::FileNotFound) => true,
141141
_ => false,
142142
};
143143
Err(e).chain_err(|| {

0 commit comments

Comments
 (0)