refactor: make SurfaceMessage handling opt in
This commit is contained in:
parent
9352c0241e
commit
17ad618fae
4 changed files with 16 additions and 7 deletions
|
|
@ -7,6 +7,13 @@ pub enum MessageWrapper<M> {
|
|||
Message(M),
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "surface-message"))]
|
||||
impl<M> From<M> for MessageWrapper<M> {
|
||||
fn from(value: M) -> Self {
|
||||
MessageWrapper::Message(value)
|
||||
}
|
||||
}
|
||||
|
||||
/// Ignore this message in your application. It will be intercepted.
|
||||
#[derive(Clone)]
|
||||
pub enum SurfaceMessage {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue