ksud: fixed "warning: elided lifetime has a name" and "warning: constant SUSFSD_PATH is never used"

This commit is contained in:
Rifat Azad
2025-01-20 13:31:18 +06:00
parent cbe3ffe32a
commit 090f4c0f02
4 changed files with 6 additions and 2 deletions

View File

@@ -8,6 +8,8 @@ use crate::{defs::BINARY_DIR, utils};
pub const RESETPROP_PATH: &str = concatcp!(BINARY_DIR, "resetprop"); pub const RESETPROP_PATH: &str = concatcp!(BINARY_DIR, "resetprop");
pub const BUSYBOX_PATH: &str = concatcp!(BINARY_DIR, "busybox"); pub const BUSYBOX_PATH: &str = concatcp!(BINARY_DIR, "busybox");
pub const BOOTCTL_PATH: &str = concatcp!(BINARY_DIR, "bootctl"); pub const BOOTCTL_PATH: &str = concatcp!(BINARY_DIR, "bootctl");
#[allow(dead_code)]
pub const SUSFSD_PATH: &str = concatcp!(BINARY_DIR, "susfsd"); pub const SUSFSD_PATH: &str = concatcp!(BINARY_DIR, "susfsd");
#[cfg(all(target_arch = "x86_64", target_os = "android"))] #[cfg(all(target_arch = "x86_64", target_os = "android"))]

View File

@@ -167,7 +167,7 @@ enum PolicyStatement<'a> {
} }
impl<'a> SeObjectParser<'a> for NormalPerm<'a> { impl<'a> SeObjectParser<'a> for NormalPerm<'a> {
fn parse(input: &'a str) -> IResult<&str, Self> { fn parse(input: &'a str) -> IResult<&'a str, Self> {
let (input, op) = alt(( let (input, op) = alt((
tag("allow"), tag("allow"),
tag("deny"), tag("deny"),

View File

@@ -8,6 +8,8 @@ use crate::{defs::BINARY_DIR, utils};
pub const RESETPROP_PATH: &str = concatcp!(BINARY_DIR, "resetprop"); pub const RESETPROP_PATH: &str = concatcp!(BINARY_DIR, "resetprop");
pub const BUSYBOX_PATH: &str = concatcp!(BINARY_DIR, "busybox"); pub const BUSYBOX_PATH: &str = concatcp!(BINARY_DIR, "busybox");
pub const BOOTCTL_PATH: &str = concatcp!(BINARY_DIR, "bootctl"); pub const BOOTCTL_PATH: &str = concatcp!(BINARY_DIR, "bootctl");
#[allow(dead_code)]
pub const SUSFSD_PATH: &str = concatcp!(BINARY_DIR, "susfsd"); pub const SUSFSD_PATH: &str = concatcp!(BINARY_DIR, "susfsd");
#[cfg(all(target_arch = "x86_64", target_os = "android"))] #[cfg(all(target_arch = "x86_64", target_os = "android"))]

View File

@@ -167,7 +167,7 @@ enum PolicyStatement<'a> {
} }
impl<'a> SeObjectParser<'a> for NormalPerm<'a> { impl<'a> SeObjectParser<'a> for NormalPerm<'a> {
fn parse(input: &'a str) -> IResult<&str, Self> { fn parse(input: &'a str) -> IResult<&'a str, Self> {
let (input, op) = alt(( let (input, op) = alt((
tag("allow"), tag("allow"),
tag("deny"), tag("deny"),