diff --git a/androscalpel/src/tests/mod.rs b/androscalpel/src/tests/mod.rs index 4ea7bb3..5e0fbca 100644 --- a/androscalpel/src/tests/mod.rs +++ b/androscalpel/src/tests/mod.rs @@ -84,7 +84,7 @@ fn get_class_dex<'a, 'b>(name: &'a str, dex: &'b DexFileReader) -> Option<&'b Cl fn get_method_code_dex(name: &str, dex: &DexFileReader) -> Option { let method = IdMethod::from_smali(name).unwrap(); - let class_name: String = (&method.class_.0).into(); + let class_name: String = (&method.class_.0).try_into().unwrap(); let class = get_class_dex(&class_name, dex); let class = if let Some(class) = class { class @@ -653,7 +653,9 @@ fn test_hidden_api() { } for cls in apk.dex_files.get("classes.dex").unwrap().classes.keys() { assert!( - apktool_result.get::((&cls.0).into()).is_some(), + apktool_result + .get::((&cls.0).try_into().unwrap()) + .is_some(), "{} not found in core-oj-33_hiddenapi.json", cls.__str__() );