Fix android/ios desktop builds, move type from native over

This commit is contained in:
Jonathan Kelley committed 2024-09-17 18:25:56 -07:00
1 parent fd9229a768
commit 5c6b72627b
3 files changed
+31 -35

No files matched your search

@@ -192,23 +192,3 @@ impl WriteMutations for MutationState {
self.channel.push_root(id.0 as _);
}
}
/// A synchronous response to a browser event which may prevent the default browser's action
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[derive(Default)]
pub struct SynchronousEventResponse {
#[cfg(feature = "serialize")]
#[serde(rename = "preventDefault")]
prevent_default: bool,
}
impl SynchronousEventResponse {
/// Create a new SynchronousEventResponse
#[allow(unused)]
pub fn new(prevent_default: bool) -> Self {
Self {
#[cfg(feature = "serialize")]
prevent_default,
}
}
}