fix: resolve major clippy warnings causing CI failures including unused doc comments, dead code, needless borrows, and assertion constants

This commit is contained in:
floor-licker
2025-12-04 07:26:38 -05:00
parent fe772c055a
commit 3742a5b864
7 changed files with 16 additions and 10 deletions
+2 -2
View File
@@ -173,7 +173,7 @@ impl ClobClient {
/// Test basic connectivity
pub async fn get_ok(&self) -> bool {
match self.http_client.get(&format!("{}/ok", self.base_url)).send().await {
match self.http_client.get(format!("{}/ok", self.base_url)).send().await {
Ok(response) => response.status().is_success(),
Err(_) => false,
}
@@ -182,7 +182,7 @@ impl ClobClient {
/// Get server time
pub async fn get_server_time(&self) -> Result<u64> {
let response = self.http_client
.get(&format!("{}/time", self.base_url))
.get(format!("{}/time", self.base_url))
.send()
.await?;