diff --git a/src/lib.rs b/src/lib.rs index aaa62e9..3c5a4d9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -151,6 +151,6 @@ pub mod prelude { pub use super::operator::window::{CountWindow, ProcessingTimeWindow, SessionWindow}; #[cfg(feature = "timestamp")] pub use super::operator::window::{EventTimeWindow, TransactionWindow}; - pub use super::{BatchMode, RuntimeConfig, StreamContext}; pub use super::Replication; + pub use super::{BatchMode, RuntimeConfig, StreamContext}; } diff --git a/src/operator/source/avro.rs b/src/operator/source/avro.rs index 1d476db..c6c4ec4 100644 --- a/src/operator/source/avro.rs +++ b/src/operator/source/avro.rs @@ -140,7 +140,7 @@ impl Clone for AvroSource { Self { reader: None, terminated: false, - replication: self.replication.clone(), + replication: self.replication, make_reader: self.make_reader.clone(), } } @@ -174,7 +174,9 @@ impl Stream where Op: Operator + 'static, { - pub fn from_avro_value Deserialize<'de> + Send>(self) -> Stream> { + pub fn from_avro_value Deserialize<'de> + Send>( + self, + ) -> Stream> { self.map(|v| { let de = from_value(&v); de.expect("failed to deserialize")