Skip to content

Commit 5c1f61d

Browse files
committed
Redunant variable
1 parent c55b737 commit 5c1f61d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ struct Memory {
5555
}
5656

5757
impl Memory {
58-
async fn init(process: &Process, moduleName: &str) -> Self {
59-
let baseModule = retry(|| process.get_module_address(moduleName)).await;
58+
async fn init(process: &Process) -> Self {
59+
let baseModule = retry(|| process.get_module_address("SniperElite.exe")).await;
6060
let baseModuleSize = retry(|| pe::read_size_of_image(process, baseModule)).await;
6161
//asr::print_message(&format!("{}", baseModuleSize));
6262

@@ -159,7 +159,7 @@ async fn main() {
159159

160160
process.until_closes(async {
161161
let mut watchers = Watchers::default();
162-
let memory = Memory::init(&process, "SniperElite.exe").await;
162+
let memory = Memory::init(&process).await;
163163

164164
loop {
165165
settings.update();

0 commit comments

Comments
 (0)