File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ fn main() {
3333 } ;
3434
3535 let mut builder = MessageBuilder :: new ( api_key. as_ref ( ) , device_token. as_ref ( ) ) ;
36- builder. data ( & data) ;
36+ builder. data ( & data) . unwrap ( ) ;
3737
3838 let work = client. send ( builder. finalize ( ) ) ;
3939
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ impl MessageBuilder {
183183 /// builder.data(&map);
184184 /// let message = builder.finalize();
185185 /// ```
186- pub fn data < ' a > ( & mut self , data : & Serialize ) -> Result < & mut MessageBuilder , serde_json:: Error > {
186+ pub fn data ( & mut self , data : & Serialize ) -> Result < & mut MessageBuilder , serde_json:: Error > {
187187 self . data = Some ( serde_json:: to_value ( data) ?) ;
188188 Ok ( self )
189189 }
Original file line number Diff line number Diff line change 11use { MessageBuilder , Priority } ;
22use notification:: NotificationBuilder ;
3- use std:: collections:: HashMap ;
43use serde_json;
54
65#[ test]
You can’t perform that action at this time.
0 commit comments