Skip to content

Commit 0f31670

Browse files
authored
Merge pull request #895 from Migorithm/chore/clippy2
chore: apply clippy after upgrade
2 parents 0ec9daa + b3537df commit 0f31670

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

duva/src/domains/peers/connections/outbound/stream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ impl OutboundStream {
3838
ok_count += 1;
3939
let msg = {
4040
match ok_count {
41-
1 => format!("REPLCONF capa psync2"),
41+
1 => "REPLCONF capa psync2".into(),
4242
// "?" here means the server is undecided about their leader. and -1 is the offset that follower is aware of
4343
2 => {
4444
format!(

duva/src/domains/replications/operation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub fn parse_custom_type(buffer: &Bytes) -> anyhow::Result<(WriteOperation, usiz
3737
let (encoded, len): (WriteOperation, usize) =
3838
bincode::decode_from_slice(&buffer.slice(1..), SERDE_CONFIG)
3939
.map_err(|err| anyhow::anyhow!("Failed to decode heartbeat message: {:?}", err))?;
40-
Ok((encoded.into(), len + 1))
40+
Ok((encoded, len + 1))
4141
}
4242

4343
impl LogEntry {

0 commit comments

Comments
 (0)