Skip to content

Commit

Permalink
ksud: Fix elided lifetime has a name warning
Browse files Browse the repository at this point in the history
Compilation log showing:

   --> src/sepolicy.rs:170:41
    |
169 | impl<'a> SeObjectParser<'a> for NormalPerm<'a> {
    |      -- lifetime `'a` declared here
170 |     fn parse(input: &'a str) -> IResult<&str, Self> {
    |                                         ^ this elided lifetime gets resolved as `'a`
    |
    = note: `#[warn(elided_named_lifetimes)]` on by default

Signed-off-by: rsuntk <rissu.ntk@gmail.com>
  • Loading branch information
rsuntk committed Dec 10, 2024
1 parent c3cba8e commit 05933f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/ksud/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 05933f4

Please sign in to comment.