ksud: Fix incorrect dependency

This commit is contained in:
tiann
2023-02-03 23:19:22 +08:00
parent aa73c34db2
commit 175de861bf
6 changed files with 30 additions and 30 deletions

View File

@@ -691,7 +691,7 @@ impl From<AtomicStatement> for FfiPolicy {
}
}
#[cfg(target_os = "linux")]
#[cfg(any(target_os = "linux", target_os = "android"))]
fn apply_one_rule<'a>(statement: &'a PolicyStatement<'a>, strict: bool) -> Result<()> {
let policies: Vec<AtomicStatement> = statement.try_into()?;
@@ -720,7 +720,7 @@ fn apply_one_rule<'a>(statement: &'a PolicyStatement<'a>, strict: bool) -> Resul
Ok(())
}
#[cfg(not(target_os = "linux"))]
#[cfg(not(any(target_os = "linux", target_os = "android")))]
fn apply_one_rule<'a>(_statement: &'a PolicyStatement<'a>, _strict: bool) -> Result<()> {
unimplemented!()
}