@@ -73,15 +73,15 @@ use take_mut::take;
7373
7474// {{{ Serializer
7575struct ToSendSerializer {
76- kv : Box < KV + Send > ,
76+ kv : Box < dyn KV + Send > ,
7777}
7878
7979impl ToSendSerializer {
8080 fn new ( ) -> Self {
8181 ToSendSerializer { kv : Box :: new ( ( ) ) }
8282 }
8383
84- fn finish ( self ) -> Box < KV + Send > {
84+ fn finish ( self ) -> Box < dyn KV + Send > {
8585 self . kv
8686 }
8787}
@@ -184,7 +184,7 @@ pub enum AsyncError {
184184 /// Could not send record to worker thread due to full queue
185185 Full ,
186186 /// Fatal problem - mutex or channel poisoning issue
187- Fatal ( Box < std:: error:: Error > ) ,
187+ Fatal ( Box < dyn std:: error:: Error > ) ,
188188}
189189
190190impl < T > From < crossbeam_channel:: TrySendError < T > > for AsyncError {
@@ -367,7 +367,7 @@ pub struct AsyncGuard {
367367
368368impl Drop for AsyncGuard {
369369 fn drop ( & mut self ) {
370- let _err: Result < ( ) , Box < std:: error:: Error > > = {
370+ let _err: Result < ( ) , Box < dyn std:: error:: Error > > = {
371371 || {
372372 let _ = self . tx . send ( AsyncMsg :: Finish ) ;
373373 let join = self . join . take ( ) . unwrap ( ) ;
@@ -478,7 +478,7 @@ struct AsyncRecord {
478478 location : Box < slog:: RecordLocation > ,
479479 tag : String ,
480480 logger_values : OwnedKVList ,
481- kv : Box < KV + Send > ,
481+ kv : Box < dyn KV + Send > ,
482482}
483483
484484enum AsyncMsg {
@@ -488,7 +488,7 @@ enum AsyncMsg {
488488
489489impl Drop for AsyncCore {
490490 fn drop ( & mut self ) {
491- let _err: Result < ( ) , Box < std:: error:: Error > > = {
491+ let _err: Result < ( ) , Box < dyn std:: error:: Error > > = {
492492 || {
493493 if let Some ( join) = self . join . lock ( ) ?. take ( ) {
494494 let _ = self . get_sender ( ) ?. send ( AsyncMsg :: Finish ) ;
0 commit comments