From 82925542b4e0a06ed9990b22f0fe3b653f204b46 Mon Sep 17 00:00:00 2001 From: s1341 Date: Mon, 1 Apr 2024 10:45:28 +0300 Subject: [PATCH] Get rid of TryInto/TryFrom imports --- frida-gum/src/debug_symbol.rs | 2 +- frida-gum/src/instruction_writer/x86_64/writer.rs | 2 +- frida-gum/src/lib.rs | 1 - frida-gum/src/module.rs | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/frida-gum/src/debug_symbol.rs b/frida-gum/src/debug_symbol.rs index 447a6a0..4ab6f67 100644 --- a/frida-gum/src/debug_symbol.rs +++ b/frida-gum/src/debug_symbol.rs @@ -1,6 +1,6 @@ use { crate::NativePointer, - core::{convert::TryInto, fmt, mem::MaybeUninit, str::Utf8Error}, + core::{fmt, mem::MaybeUninit, str::Utf8Error}, cstr_core::{CStr, CString}, frida_gum_sys as gum_sys, gum_sys::{gum_find_function, gum_symbol_details_from_address, GumDebugSymbolDetails}, diff --git a/frida-gum/src/instruction_writer/x86_64/writer.rs b/frida-gum/src/instruction_writer/x86_64/writer.rs index 285ef62..6e330d9 100644 --- a/frida-gum/src/instruction_writer/x86_64/writer.rs +++ b/frida-gum/src/instruction_writer/x86_64/writer.rs @@ -1,6 +1,6 @@ use { crate::instruction_writer::{Argument, InstructionWriter, X86BranchCondition, X86Register}, - core::{convert::TryInto, ffi::c_void}, + core::ffi::c_void, frida_gum_sys as gum_sys, gum_sys::{gssize, GumArgument, GumBranchHint}, }; diff --git a/frida-gum/src/lib.rs b/frida-gum/src/lib.rs index b5aa11b..f25d6e6 100644 --- a/frida-gum/src/lib.rs +++ b/frida-gum/src/lib.rs @@ -67,7 +67,6 @@ extern crate num; extern crate num_derive; use core::{ - convert::TryFrom, ffi::{c_char, c_void, CStr}, fmt::{Debug, Display, Formatter, LowerHex, UpperHex}, }; diff --git a/frida-gum/src/module.rs b/frida-gum/src/module.rs index 8657266..beb5779 100644 --- a/frida-gum/src/module.rs +++ b/frida-gum/src/module.rs @@ -15,7 +15,7 @@ use { crate::{NativePointer, PageProtection, RangeDetails}, - core::{convert::TryInto, ffi::c_void}, + core::ffi::c_void, cstr_core::CString, frida_gum_sys as gum_sys, frida_gum_sys::{gboolean, gpointer, GumExportDetails, GumModuleDetails, GumSymbolDetails},