feat: make Rustler not clonable

This commit is contained in:
Lucas Colombo 2024-05-24 00:37:23 -03:00
parent 3933277602
commit 97d8dab22e
Signed by: lucas
GPG Key ID: EF34786CFEFFAE35
2 changed files with 2 additions and 1 deletions

View File

@ -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| {

View File

@ -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>,