File tree Expand file tree Collapse file tree 4 files changed +11
-11
lines changed
Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ mod tests {
138138 user_id: "148973258" . to_owned( ) ,
139139 timeout_length: Duration :: from_secs( 1 )
140140 } ,
141- server_timestamp: Utc . timestamp_millis ( 1594553828245 ) ,
141+ server_timestamp: Utc . timestamp_millis_opt ( 1594553828245 ) . unwrap ( ) ,
142142 source: irc_message
143143 }
144144 )
@@ -159,7 +159,7 @@ mod tests {
159159 user_login: "weeb123" . to_owned( ) ,
160160 user_id: "70948394" . to_owned( ) ,
161161 } ,
162- server_timestamp: Utc . timestamp_millis ( 1594561360331 ) ,
162+ server_timestamp: Utc . timestamp_millis_opt ( 1594561360331 ) . unwrap ( ) ,
163163 source: irc_message
164164 }
165165 )
@@ -177,7 +177,7 @@ mod tests {
177177 channel_login: "randers" . to_owned( ) ,
178178 channel_id: "40286300" . to_owned( ) ,
179179 action: ClearChatAction :: ChatCleared ,
180- server_timestamp: Utc . timestamp_millis ( 1594561392337 ) ,
180+ server_timestamp: Utc . timestamp_millis_opt ( 1594561392337 ) . unwrap ( ) ,
181181 source: irc_message
182182 }
183183 )
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ mod tests {
8686 message_id: "3c92014f-340a-4dc3-a9c9-e5cf182f4a84" . to_owned( ) ,
8787 message_text: "NIGHT CUNT" . to_owned( ) ,
8888 is_action: false ,
89- server_timestamp: Utc . timestamp_millis ( 1594561955611 ) ,
89+ server_timestamp: Utc . timestamp_millis_opt ( 1594561955611 ) . unwrap ( ) ,
9090 source: irc_message
9191 }
9292 )
@@ -106,7 +106,7 @@ mod tests {
106106 message_id: "15e5164d-f8e6-4aec-baf4-2d6a330760c4" . to_owned( ) ,
107107 message_text: "test" . to_owned( ) ,
108108 is_action: true ,
109- server_timestamp: Utc . timestamp_millis ( 1594562632383 ) ,
109+ server_timestamp: Utc . timestamp_millis_opt ( 1594562632383 ) . unwrap ( ) ,
110110 source: irc_message
111111 }
112112 )
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ mod tests {
142142 b: 0xFF
143143 } ) ,
144144 emotes: vec![ ] ,
145- server_timestamp: Utc . timestamp_millis ( 1594545155039 ) ,
145+ server_timestamp: Utc . timestamp_millis_opt ( 1594545155039 ) . unwrap ( ) ,
146146 message_id: "e9d998c3-36f1-430f-89ec-6b887c28af36" . to_owned( ) ,
147147
148148 source: irc_message
@@ -189,7 +189,7 @@ mod tests {
189189 b: 0xE6
190190 } ) ,
191191 emotes: vec![ ] ,
192- server_timestamp: Utc . timestamp_millis ( 1594555275886 ) ,
192+ server_timestamp: Utc . timestamp_millis_opt ( 1594555275886 ) . unwrap ( ) ,
193193 message_id: "d831d848-b7c7-4559-ae3a-2cb88f4dbfed" . to_owned( ) ,
194194
195195 source: irc_message
@@ -220,7 +220,7 @@ mod tests {
220220 bits: None ,
221221 name_color: None ,
222222 emotes: vec![ ] ,
223- server_timestamp: Utc . timestamp_millis ( 1594554085753 ) ,
223+ server_timestamp: Utc . timestamp_millis_opt ( 1594554085753 ) . unwrap ( ) ,
224224 message_id: "c9b941d9-a0ab-4534-9903-971768fcdf10" . to_owned( ) ,
225225
226226 source: irc_message
Original file line number Diff line number Diff line change @@ -563,7 +563,7 @@ mod tests {
563563 emotes: vec![ ] ,
564564 name_color: None ,
565565 message_id: "2a9bea11-a80a-49a0-a498-1642d457f775" . to_owned( ) ,
566- server_timestamp: Utc . timestamp_millis ( 1582685713242 ) ,
566+ server_timestamp: Utc . timestamp_millis_opt ( 1582685713242 ) . unwrap ( ) ,
567567 source: irc_message,
568568 }
569569 )
@@ -622,7 +622,7 @@ mod tests {
622622 b: 0xFF ,
623623 } ) ,
624624 message_id: "e0975c76-054c-4954-8cb0-91b8867ec1ca" . to_owned( ) ,
625- server_timestamp: Utc . timestamp_millis ( 1581713640019 ) ,
625+ server_timestamp: Utc . timestamp_millis_opt ( 1581713640019 ) . unwrap ( ) ,
626626 source: irc_message,
627627 }
628628 )
@@ -668,7 +668,7 @@ mod tests {
668668 b: 0xE2 ,
669669 } ) ,
670670 message_id: "ca1f02fb-77ec-487d-a9b3-bc4bfef2fe8b" . to_owned( ) ,
671- server_timestamp: Utc . timestamp_millis ( 1590628650446 ) ,
671+ server_timestamp: Utc . timestamp_millis_opt ( 1590628650446 ) . unwrap ( ) ,
672672 source: irc_message,
673673 }
674674 )
You can’t perform that action at this time.
0 commit comments