Skip to content

Commit

Permalink
removed redundant slice index
Browse files Browse the repository at this point in the history
  • Loading branch information
BogdanYarotsky committed Sep 13, 2024
1 parent cf2d1bd commit 738ae59
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/core/comms/secure_channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1182,8 +1182,7 @@ impl SecureChannel {
) -> Result<usize, StatusCode> {
match self.security_mode {
MessageSecurityMode::None => {
// Just copy everything from src to dst
dst[..].copy_from_slice(src);
dst.copy_from_slice(src);
Ok(src.len())
}
MessageSecurityMode::Sign => {
Expand Down

0 comments on commit 738ae59

Please sign in to comment.