Clippy for LibAFL_QEMU (#2552)
This commit is contained in:
parent
629a560f3b
commit
c559b856e6
@ -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 {}
|
||||
}
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user