Skip to content

Commit 6a80f8d

Browse files
authored
fix: Fix dead code warning on Unix platforms (#403)
1 parent 129e01e commit 6a80f8d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/common.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,9 @@ impl From<accesskit::ActionRequest> for ActionRequest {
715715
}
716716
}
717717

718+
// The following exception is needed because this struct is only used
719+
// in the bindings for some platform adapters.
720+
#[allow(dead_code)]
718721
pub(crate) struct LocalPythonActivationHandler<'a> {
719722
pub(crate) py: Python<'a>,
720723
pub(crate) handler: Py<PyAny>,

0 commit comments

Comments
 (0)