Skip to content

Commit

Permalink
chore: fix new clippy warnings from 1.84
Browse files Browse the repository at this point in the history
  • Loading branch information
vthib committed Jan 17, 2025
1 parent 2849630 commit 2ab0b3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions boreal/src/module/pe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ impl Module for Pe {

fn get_static_values(&self) -> HashMap<&'static str, StaticValue> {
#[allow(clippy::cast_possible_wrap)]
[
#[allow(clippy::large_stack_arrays)]
HashMap::from([
(
"MACHINE_UNKNOWN",
StaticValue::Integer(pe::IMAGE_FILE_MACHINE_UNKNOWN.into()),
Expand Down Expand Up @@ -823,8 +824,7 @@ impl Module for Pe {
Type::Integer,
),
),
]
.into()
])
}

fn get_dynamic_types(&self) -> HashMap<&'static str, Type> {
Expand Down
2 changes: 1 addition & 1 deletion boreal/src/scanner/process/sys/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub fn process_memory(pid: u32) -> Result<Box<dyn FragmentedMemory>, ScanError>
// Safety:
// - The handle is valid since the call to OpenProcess succeeded
// - The handle must be closed with `CloseHandle`.
let handle = unsafe { OwnedHandle::from_raw_handle(res as _) };
let handle = unsafe { OwnedHandle::from_raw_handle(res.cast()) };

Ok(Box::new(WindowsProcessMemory {
handle,
Expand Down

0 comments on commit 2ab0b3d

Please sign in to comment.