File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
examples/e15_simple_dashboard/src Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,7 @@ jobs:
164164
165165 - name : Pin problematic dependencies to working versions
166166 run : |
167+ cargo update ed25519-dalek --precise 2.1.1
167168 cargo update idna_adapter --precise 1.1.0
168169 cargo update triomphe --precise 0.1.11
169170 cargo update base64ct --precise 1.7.3
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ impl EventHandler for Handler {
135135 let default_values = {
136136 let mut values = vec ! [ ] ;
137137 for i in u8:: MIN ..=u8:: MAX {
138- if i % 32 == 0 {
138+ if i. is_multiple_of ( 32 ) {
139139 values. push ( i. to_string ( ) )
140140 }
141141 }
Original file line number Diff line number Diff line change @@ -94,15 +94,14 @@ impl serde::Serialize for CreateInteractionResponse {
9494 } ) ?;
9595
9696 match self {
97- Self :: Pong => map. serialize_entry ( "data" , & None :: < ( ) > ) ?,
98- Self :: Message ( x) => map. serialize_entry ( "data" , & x) ?,
99- Self :: Defer ( x) => map. serialize_entry ( "data" , & x) ?,
100- Self :: Acknowledge => map. serialize_entry ( "data" , & None :: < ( ) > ) ?,
101- Self :: UpdateMessage ( x) => map. serialize_entry ( "data" , & x) ?,
10297 Self :: Autocomplete ( x) => map. serialize_entry ( "data" , & x) ?,
10398 Self :: Modal ( x) => map. serialize_entry ( "data" , & x) ?,
104- Self :: PremiumRequired => map. serialize_entry ( "data" , & None :: < ( ) > ) ?,
105- Self :: LaunchActivity => map. serialize_entry ( "data" , & None :: < ( ) > ) ?,
99+ Self :: Message ( x) | Self :: Defer ( x) | Self :: UpdateMessage ( x) => {
100+ map. serialize_entry ( "data" , & x) ?;
101+ } ,
102+ Self :: Pong | Self :: Acknowledge | Self :: PremiumRequired | Self :: LaunchActivity => {
103+ map. serialize_entry ( "data" , & None :: < ( ) > ) ?;
104+ } ,
106105 }
107106
108107 map. end ( )
You can’t perform that action at this time.
0 commit comments