Skip to content

Commit 2b9e994

Browse files
committed
Fix clippy lint
1 parent 8fa2112 commit 2b9e994

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ipc2581/src/checksum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub fn validate_checksum(xml: &str) -> Result<()> {
5555
hasher.update(content.as_bytes());
5656
let actual_bytes = hasher.finalize();
5757

58-
if expected_bytes.as_slice() != actual_bytes.as_slice() {
58+
if expected_bytes[..] != actual_bytes[..] {
5959
return Err(Ipc2581Error::ChecksumMismatch {
6060
expected: format!("{:x}", md5::Md5::digest(expected_bytes)),
6161
actual: format!("{:x}", md5::Md5::digest(actual_bytes)),

0 commit comments

Comments
 (0)