Skip to content

Commit d5c08ca

Browse files
committed
chore: make clippy happy
1 parent 920665d commit d5c08ca

File tree

1 file changed

+12
-21
lines changed

1 file changed

+12
-21
lines changed

src/parse.rs

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,10 @@ pub(crate) async fn parse_status<T: Stream<Item = io::Result<ResponseData>> + Un
127127
)))
128128
}
129129
_ => {
130-
return Err(Error::Io(io::Error::new(
131-
io::ErrorKind::Other,
132-
format!(
133-
"status: {:?}, code: {:?}, information: {:?}",
134-
status, code, information
135-
),
136-
)));
130+
return Err(Error::Io(io::Error::other(format!(
131+
"status: {:?}, code: {:?}, information: {:?}",
132+
status, code, information
133+
))));
137134
}
138135
}
139136
}
@@ -273,13 +270,10 @@ pub(crate) async fn parse_mailbox<T: Stream<Item = io::Result<ResponseData>> + U
273270
)))
274271
}
275272
_ => {
276-
return Err(Error::Io(io::Error::new(
277-
io::ErrorKind::Other,
278-
format!(
279-
"status: {:?}, code: {:?}, information: {:?}",
280-
status, code, information
281-
),
282-
)));
273+
return Err(Error::Io(io::Error::other(format!(
274+
"status: {:?}, code: {:?}, information: {:?}",
275+
status, code, information
276+
))));
283277
}
284278
}
285279
}
@@ -327,13 +321,10 @@ pub(crate) async fn parse_mailbox<T: Stream<Item = io::Result<ResponseData>> + U
327321
)))
328322
}
329323
_ => {
330-
return Err(Error::Io(io::Error::new(
331-
io::ErrorKind::Other,
332-
format!(
333-
"status: {:?}, code: {:?}, information: {:?}",
334-
status, code, information
335-
),
336-
)));
324+
return Err(Error::Io(io::Error::other(format!(
325+
"status: {:?}, code: {:?}, information: {:?}",
326+
status, code, information
327+
))));
337328
}
338329
}
339330
}

0 commit comments

Comments
 (0)