Skip to content

Commit 6a96db2

Browse files
authored
Merge pull request #276 from espindola/clippy
Silence clippy warnings
2 parents bbde9ae + 31affa3 commit 6a96db2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/conn/binlog_stream/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ impl futures_core::stream::Stream for BinlogStream {
166166
Ok(Some(event)) => {
167167
if event.header().event_type_raw() == EventType::TRANSACTION_PAYLOAD_EVENT as u8
168168
{
169+
#[allow(clippy::single_match)]
169170
match event.read_event::<TransactionPayloadEvent<'_>>() {
170171
Ok(e) => self.tpe = Some(Cursor::new(e.danger_decompress())),
171172
Err(_) => (/* TODO: Log the error */),

src/conn/pool/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,6 +1047,7 @@ mod test {
10471047
// queued.
10481048
let conn = pool.get_conn().await.unwrap();
10491049

1050+
#[allow(clippy::async_yields_async)]
10501051
let get_pending = || async {
10511052
let fut = async {
10521053
pool.get_conn().await.unwrap();

0 commit comments

Comments
 (0)