diff --git a/src/signal_association/coinmarketcap.rs b/src/signal_association/coinmarketcap.rs index a526750..a1b9950 100644 --- a/src/signal_association/coinmarketcap.rs +++ b/src/signal_association/coinmarketcap.rs @@ -162,7 +162,7 @@ pub async fn market_cap_index() -> Result<(), Box { text = T.text().await?; v = serde_json::from_str(text.as_str()).unwrap(); - + if v.as_object().is_none() { return Err("Err")?; } @@ -170,7 +170,7 @@ pub async fn market_cap_index() -> Result<(), Box Result<(), Box