Clippy for LibAFL_QEMU (#2552)

This commit is contained in:
Dominik Maier 2024-09-24 15:05:16 +02:00 committed by GitHub
parent 629a560f3b
commit c559b856e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -541,7 +541,7 @@ impl Default for FullBacktraceCollector {
impl FullBacktraceCollector {
pub fn new() -> Self {
unsafe { *(&mut *addr_of_mut!(CALLSTACKS)) = Some(ThreadLocal::new()) };
unsafe { (*addr_of_mut!(CALLSTACKS)) = Some(ThreadLocal::new()) };
Self {}
}

View File

@ -340,7 +340,7 @@ pub mod pybind {
fn set_syscall_hook(&self, hook: PyObject) {
unsafe {
*(&mut *core::ptr::addr_of_mut!(PY_SYSCALL_HOOK)) = Some(hook);
(*core::ptr::addr_of_mut!(PY_SYSCALL_HOOK)) = Some(hook);
}
self.qemu
.hooks()