Fix clippy warning

This commit is contained in:
wtfsck 2021-07-08 01:51:28 +02:00
parent 23f4b43265
commit bd7abf27e4
1 changed files with 1 additions and 0 deletions

View File

@ -1257,6 +1257,7 @@ impl<'a> Decoder<'a> {
}
// SAFETY: `instruction` must be non-null, writable and aligned (`ptr::write()`) and not aliased
#[allow(clippy::useless_let_if_seq)]
unsafe fn decode_out_ptr(&mut self, instruction: *mut Instruction) {
// SAFETY:
// - the instruction has only primitive integer types, nothing needs to be dropped