fix: address clippy warnings

This commit is contained in:
鲁树人
2025-09-08 20:35:09 +09:00
parent 9ba4eed1ea
commit 2db85a1e9c
12 changed files with 27 additions and 27 deletions

View File

@@ -28,7 +28,7 @@ impl MetadataParser for PcV1Legacy {
let ekey = payload
.iter()
.take_while(|&&b| b != 0)
.map(|&b| b)
.copied()
.collect::<Vec<_>>();
let ekey = String::from_utf8_lossy(ekey.as_slice());
if !is_base64(ekey.as_bytes()) {