diff --git a/libptrscan/Cargo.toml b/libptrscan/Cargo.toml index 20c2182..bfbb862 100644 --- a/libptrscan/Cargo.toml +++ b/libptrscan/Cargo.toml @@ -12,10 +12,5 @@ crate-type = ["cdylib", "staticlib"] version = "0.4.9" default-features = false -[target.'cfg(all(target_arch = "x86_64", any(target_os = "linux", target_os = "android")))'.dependencies.iced-x86] -version = "1.21.0" -default-features = false -features = ["decoder", "no_std"] - [features] nightly = [] diff --git a/libptrscan/src/dump/load.rs b/libptrscan/src/dump/loader.rs similarity index 100% rename from libptrscan/src/dump/load.rs rename to libptrscan/src/dump/loader.rs diff --git a/libptrscan/src/dump/mod.rs b/libptrscan/src/dump/mod.rs index 7adf6a8..474a2af 100644 --- a/libptrscan/src/dump/mod.rs +++ b/libptrscan/src/dump/mod.rs @@ -13,13 +13,13 @@ mod windows; #[cfg(target_os = "windows")] pub use windows::Process; -mod load; +mod loader; mod rangemap; use core::{mem, slice}; use std::collections::BTreeMap; -pub use load::load_pointer_map_file; +pub use loader::load_pointer_map_file; pub use rangemap::{RangeMap, RangeSet}; pub struct PointerMap { diff --git a/libptrscan/src/scan/mod.rs b/libptrscan/src/scan/mod.rs index bde6738..ef11f6c 100644 --- a/libptrscan/src/scan/mod.rs +++ b/libptrscan/src/scan/mod.rs @@ -53,7 +53,6 @@ pub mod private { fn from_residual(residual: ControlFlow) -> Self { match residual { ControlFlow::Break(b) => ControlFlow::Break(b), - _ => unsafe { core::hint::unreachable_unchecked() }, } } } @@ -107,7 +106,6 @@ pub mod private { fn from_residual(residual: Result) -> Self { match residual { Err(e) => Err(From::from(e)), - _ => unsafe { core::hint::unreachable_unchecked() }, } } } diff --git a/rust-toolchain.toml b/rust-toolchain.toml deleted file mode 100644 index 049ca99..0000000 --- a/rust-toolchain.toml +++ /dev/null @@ -1,2 +0,0 @@ -[toolchain] -channel = "nightly-2024-08-06"