From 0d176255e215f8747ce92dc582fac1b7a426ec5f Mon Sep 17 00:00:00 2001 From: imDema Date: Mon, 27 May 2024 17:11:27 +0200 Subject: [PATCH] Format and clippy --- src/lib.rs | 2 +- src/operator/source/avro.rs | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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")