From 97d8dab22e79133cf834ef6666f4a9f2a60dd4e3 Mon Sep 17 00:00:00 2001 From: Lucas Colombo Date: Fri, 24 May 2024 00:37:23 -0300 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20make=20Rustler=20not=20clon?= =?UTF-8?q?able?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/bus-sub.rs | 1 + lib/rustlers/rustler.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/bus-sub.rs b/examples/bus-sub.rs index bac6bd7..b98312f 100644 --- a/examples/bus-sub.rs +++ b/examples/bus-sub.rs @@ -16,6 +16,7 @@ async fn main() -> Result<()> { let ticker = Ticker { market: "BINANCE".to_string(), symbol: "BTCUSDT".to_string(), + quote_asset: None, }; let _obs = sx.stream().await?.filter(move |quote| quote.belongs_to(&ticker)).subscribe(|v| { diff --git a/lib/rustlers/rustler.rs b/lib/rustlers/rustler.rs index 45bf15b..164cf42 100644 --- a/lib/rustlers/rustler.rs +++ b/lib/rustlers/rustler.rs @@ -497,7 +497,7 @@ macro_rules! rustler { ) => { // Expand to the struct with derives and the fields $(#[$outer])* - #[derive(Debug, Clone, Default)] + #[derive(Default)] $vis struct $name { status: $crate::rustlers::RustlerStatus, next_run: $crate::rustlers::chrono::DateTime<$crate::rustlers::chrono::Local>,