diff options
Diffstat (limited to 'lib/rs/src/protocol/compact.rs')
-rw-r--r-- | lib/rs/src/protocol/compact.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rs/src/protocol/compact.rs b/lib/rs/src/protocol/compact.rs index 334e8201b..1750bc42e 100644 --- a/lib/rs/src/protocol/compact.rs +++ b/lib/rs/src/protocol/compact.rs @@ -322,7 +322,7 @@ impl TCompactInputProtocolFactory { } impl TInputProtocolFactory for TCompactInputProtocolFactory { - fn create(&self, transport: Box<TReadTransport + Send>) -> Box<TInputProtocol + Send> { + fn create(&self, transport: Box<dyn TReadTransport + Send>) -> Box<dyn TInputProtocol + Send> { Box::new(TCompactInputProtocol::new(transport)) } } @@ -593,7 +593,7 @@ impl TCompactOutputProtocolFactory { } impl TOutputProtocolFactory for TCompactOutputProtocolFactory { - fn create(&self, transport: Box<TWriteTransport + Send>) -> Box<TOutputProtocol + Send> { + fn create(&self, transport: Box<dyn TWriteTransport + Send>) -> Box<dyn TOutputProtocol + Send> { Box::new(TCompactOutputProtocol::new(transport)) } } |