Skip to content

Commit 49164a7

Browse files
committed
Revert "Fixed clippy issues on CI."
This reverts commit a9fa6ba.
1 parent a9fa6ba commit 49164a7

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/messages.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ where
279279
{
280280
let password = md5_hash_password(user, password, salt);
281281

282-
let mut message = BytesMut::with_capacity(password.len() + 5);
282+
let mut message = BytesMut::with_capacity(password.len() as usize + 5);
283283

284284
message.put_u8(b'p');
285285
message.put_i32(password.len() as i32 + 4);
@@ -293,7 +293,7 @@ where
293293
S: tokio::io::AsyncWrite + std::marker::Unpin,
294294
{
295295
let password = md5_hash_second_pass(hash, salt);
296-
let mut message = BytesMut::with_capacity(password.len() + 5);
296+
let mut message = BytesMut::with_capacity(password.len() as usize + 5);
297297

298298
message.put_u8(b'p');
299299
message.put_i32(password.len() as i32 + 4);

src/mirrors.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ impl MirroringManager {
137137
bytes_rx,
138138
disconnect_rx: exit_rx,
139139
};
140-
exit_senders.push(exit_tx);
141-
byte_senders.push(bytes_tx);
140+
exit_senders.push(exit_tx.clone());
141+
byte_senders.push(bytes_tx.clone());
142142
client.start();
143143
});
144144

src/pool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ impl ServerPool {
10411041
) -> ServerPool {
10421042
ServerPool {
10431043
address,
1044-
user,
1044+
user: user.clone(),
10451045
database: database.to_string(),
10461046
client_server_map,
10471047
auth_hash,

src/query_router.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,7 @@ mod test {
14761476
};
14771477

14781478
let mut qr = QueryRouter::new();
1479-
qr.update_pool_settings(pool_settings);
1479+
qr.update_pool_settings(pool_settings.clone());
14801480

14811481
// Shard should start out unset
14821482
assert_eq!(qr.active_shard, None);

0 commit comments

Comments
 (0)