@@ -10,7 +10,6 @@ pub use notification::{Notification, NotificationBuilder};
1010pub use notifier:: ToastsNotifier ;
1111use windows:: {
1212 core:: HSTRING ,
13- Foundation :: EventRegistrationToken ,
1413 UI :: Notifications :: {
1514 NotificationMirroring as ToastNotificationMirroring , ToastNotification ,
1615 ToastNotificationPriority ,
@@ -151,35 +150,35 @@ impl<T: NotificationImpl> ManageNotification for T {
151150 & self ,
152151 handler : NotificationActivatedEventHandler ,
153152 ) -> Result < i64 , NotifError > {
154- Ok ( self . notif ( ) . Activated ( & handler. handler ) ?. Value )
153+ Ok ( self . notif ( ) . Activated ( & handler. handler ) ?)
155154 }
156155 fn remove_activated_handler ( & self , token : i64 ) -> Result < ( ) , NotifError > {
157156 Ok (
158157 self
159158 . notif ( )
160- . RemoveActivated ( EventRegistrationToken { Value : token } ) ?,
159+ . RemoveActivated ( token) ?,
161160 )
162161 }
163162
164163 fn set_dismissed_handler ( & self , handler : NotificationDismissedEventHandler ) -> Result < i64 , NotifError > {
165- Ok ( self . notif ( ) . Dismissed ( & handler. handler ) ?. Value )
164+ Ok ( self . notif ( ) . Dismissed ( & handler. handler ) ?)
166165 }
167166 fn remove_dismissed_handler ( & self , token : i64 ) -> Result < ( ) , NotifError > {
168167 Ok (
169168 self
170169 . notif ( )
171- . RemoveDismissed ( EventRegistrationToken { Value : token } ) ?,
170+ . RemoveDismissed ( token) ?,
172171 )
173172 }
174173
175174 fn set_failed_handler ( & self , handler : NotificationFailedEventHandler ) -> Result < i64 , NotifError > {
176- Ok ( self . notif ( ) . Failed ( & handler. handler ) ?. Value )
175+ Ok ( self . notif ( ) . Failed ( & handler. handler ) ?)
177176 }
178177 fn remove_failed_handler ( & self , token : i64 ) -> Result < ( ) , NotifError > {
179178 Ok (
180179 self
181180 . notif ( )
182- . RemoveFailed ( EventRegistrationToken { Value : token } ) ?,
181+ . RemoveFailed ( token) ?,
183182 )
184183 }
185184
0 commit comments