Fix new clippy lints

This commit is contained in:
Igor Katson 2024-08-03 11:08:30 +01:00
parent 53f3f9035e
commit 95f958ef39
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
2 changed files with 17 additions and 20 deletions

View file

@ -77,6 +77,7 @@ impl ReadBuf {
self.processed += size;
// Rust's borrow checker can't do this early return so resort to unsafe.
#[allow(clippy::missing_transmute_annotations)]
let msg = unsafe { std::mem::transmute(msg) };
return Ok(msg);
}