Skip to content

Commit b41aa8d

Browse files
committed
refactor(clippy): fix warnings
1 parent 4eda7dc commit b41aa8d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tox_encryptsave/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ impl PassKey {
160160
output.extend_from_slice(&self.salt);
161161
output.extend_from_slice(&nonce);
162162
output.append(&mut self.key.encrypt(
163-
&nonce.into(),
163+
&nonce,
164164
data
165165
).or(Err(EncryptionError::Null))?);
166166

tox_packet/src/dht/packed_node.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ impl PackedNode {
113113
}
114114

115115
/// to_bytes for TCP
116+
#[allow(clippy::wrong_self_convention)]
116117
pub fn to_tcp_bytes<'a>(&self, buf: (&'a mut [u8], usize)) -> Result<(&'a mut [u8], usize), GenError> {
117118
do_gen!(buf,
118119
gen_if_else!(self.saddr.is_ipv4(), gen_be_u8!(130), gen_be_u8!(138)) >>

0 commit comments

Comments
 (0)