Skip to content

Commit

Permalink
ksud: fixed "warning: elided lifetime has a name" and "warning: const…
Browse files Browse the repository at this point in the history
…ant `SUSFSD_PATH` is never used"
  • Loading branch information
rifsxd committed Jan 20, 2025
1 parent cbe3ffe commit 090f4c0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions userspace/ksud_magic/src/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ use crate::{defs::BINARY_DIR, utils};
pub const RESETPROP_PATH: &str = concatcp!(BINARY_DIR, "resetprop");
pub const BUSYBOX_PATH: &str = concatcp!(BINARY_DIR, "busybox");
pub const BOOTCTL_PATH: &str = concatcp!(BINARY_DIR, "bootctl");

#[allow(dead_code)]
pub const SUSFSD_PATH: &str = concatcp!(BINARY_DIR, "susfsd");

#[cfg(all(target_arch = "x86_64", target_os = "android"))]
Expand Down
2 changes: 1 addition & 1 deletion userspace/ksud_magic/src/sepolicy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ enum PolicyStatement<'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((
tag("allow"),
tag("deny"),
Expand Down
2 changes: 2 additions & 0 deletions userspace/ksud_overlayfs/src/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ use crate::{defs::BINARY_DIR, utils};
pub const RESETPROP_PATH: &str = concatcp!(BINARY_DIR, "resetprop");
pub const BUSYBOX_PATH: &str = concatcp!(BINARY_DIR, "busybox");
pub const BOOTCTL_PATH: &str = concatcp!(BINARY_DIR, "bootctl");

#[allow(dead_code)]
pub const SUSFSD_PATH: &str = concatcp!(BINARY_DIR, "susfsd");

#[cfg(all(target_arch = "x86_64", target_os = "android"))]
Expand Down
2 changes: 1 addition & 1 deletion userspace/ksud_overlayfs/src/sepolicy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ enum PolicyStatement<'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((
tag("allow"),
tag("deny"),
Expand Down

0 comments on commit 090f4c0

Please sign in to comment.