@@ -997,7 +997,7 @@ mod tests {
997
997
use std:: time:: Duration ;
998
998
999
999
use crate :: {
1000
- error:: SendError ,
1000
+ error:: { Infallible , SendError } ,
1001
1001
mailbox:: {
1002
1002
bounded:: { BoundedMailbox , BoundedMailboxReceiver } ,
1003
1003
unbounded:: UnboundedMailbox ,
@@ -1013,6 +1013,7 @@ mod tests {
1013
1013
1014
1014
impl Actor for MyActor {
1015
1015
type Mailbox = BoundedMailbox < Self > ;
1016
+ type Error = Infallible ;
1016
1017
}
1017
1018
1018
1019
struct Msg ;
@@ -1060,6 +1061,7 @@ mod tests {
1060
1061
1061
1062
impl Actor for MyActor {
1062
1063
type Mailbox = UnboundedMailbox < Self > ;
1064
+ type Error = Infallible ;
1063
1065
}
1064
1066
1065
1067
struct Msg ;
@@ -1107,6 +1109,7 @@ mod tests {
1107
1109
1108
1110
impl Actor for MyActor {
1109
1111
type Mailbox = BoundedMailbox < Self > ;
1112
+ type Error = Infallible ;
1110
1113
}
1111
1114
1112
1115
#[ derive( Clone , Copy , PartialEq , Eq ) ]
@@ -1158,6 +1161,7 @@ mod tests {
1158
1161
1159
1162
impl Actor for MyActor {
1160
1163
type Mailbox = UnboundedMailbox < Self > ;
1164
+ type Error = Infallible ;
1161
1165
}
1162
1166
1163
1167
#[ derive( Clone , Copy , PartialEq , Eq ) ]
@@ -1209,6 +1213,7 @@ mod tests {
1209
1213
1210
1214
impl Actor for MyActor {
1211
1215
type Mailbox = BoundedMailbox < Self > ;
1216
+ type Error = Infallible ;
1212
1217
1213
1218
fn new_mailbox ( ) -> ( BoundedMailbox < Self > , BoundedMailboxReceiver < Self > ) {
1214
1219
BoundedMailbox :: new ( 1 )
@@ -1256,6 +1261,7 @@ mod tests {
1256
1261
1257
1262
impl Actor for MyActor {
1258
1263
type Mailbox = BoundedMailbox < Self > ;
1264
+ type Error = Infallible ;
1259
1265
1260
1266
fn new_mailbox ( ) -> ( BoundedMailbox < Self > , BoundedMailboxReceiver < Self > ) {
1261
1267
BoundedMailbox :: new ( 1 )
@@ -1317,6 +1323,7 @@ mod tests {
1317
1323
1318
1324
impl Actor for MyActor {
1319
1325
type Mailbox = BoundedMailbox < Self > ;
1326
+ type Error = Infallible ;
1320
1327
}
1321
1328
1322
1329
#[ derive( Clone , Copy , PartialEq , Eq ) ]
@@ -1363,6 +1370,7 @@ mod tests {
1363
1370
1364
1371
impl Actor for MyActor {
1365
1372
type Mailbox = UnboundedMailbox < Self > ;
1373
+ type Error = Infallible ;
1366
1374
}
1367
1375
1368
1376
#[ derive( Clone , Copy , PartialEq , Eq ) ]
0 commit comments