summaryrefslogtreecommitdiff
path: root/libs/binder/rust/sys/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'libs/binder/rust/sys/lib.rs')
-rw-r--r--libs/binder/rust/sys/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/binder/rust/sys/lib.rs b/libs/binder/rust/sys/lib.rs
index c5c847b874..5352473272 100644
--- a/libs/binder/rust/sys/lib.rs
+++ b/libs/binder/rust/sys/lib.rs
@@ -25,7 +25,9 @@ mod bindings {
}
// Trusty puts the full path to the auto-generated file in BINDGEN_INC_FILE
-// and builds it with warnings-as-errors, so we need to use #[allow(bad_style)]
+// and builds it with warnings-as-errors, so we need to use #[allow(bad_style)].
+// We need to use cfg(target_os) instead of cfg(trusty) here because of
+// the difference between the two build systems, which we cannot mock.
#[cfg(target_os = "trusty")]
#[allow(bad_style)]
mod bindings {