Skip to content

Commit f1a11f0

Browse files
Tanut LertwarachaiTanut Lertwarachai
authored andcommitted
fix copilot comment
1 parent 2465273 commit f1a11f0

6 files changed

Lines changed: 2 additions & 18 deletions

File tree

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ bothan-htx = { path = "bothan-htx", version = "0.1.0" }
3131
bothan-kraken = { path = "bothan-kraken", version = "0.1.0" }
3232
bothan-okx = { path = "bothan-okx", version = "0.1.0" }
3333
bothan-band = { path = "bothan-band", version = "0.1.0" }
34-
35-
anyhow = "1.0.86"
3634
async-trait = "0.1.77"
3735
bincode = "2.0.1"
3836
chrono = "0.4.39"
@@ -46,8 +44,6 @@ mockito = "1.4.0"
4644
num-traits = "0.2.19"
4745
opentelemetry = { version = "0.28.0", features = ["metrics"] }
4846
prost = "0.13.1"
49-
protoc-gen-prost = "0.4.0"
50-
protoc-gen-tonic = "0.4.1"
5147
rand = "0.8.5"
5248
reqwest = { version = "0.12.3", features = ["json"] }
5349
rust_decimal = "1.10.2"

bothan-core/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ opentelemetry-prometheus = "0.28.0"
4747
opentelemetry_sdk = "0.28.0"
4848
prometheus = "0.13.4"
4949
rust-rocksdb = { version = "0.36.0", optional = true }
50-
strum_macros = "0.27.2"
5150

5251
[features]
5352
default = []

bothan-core/src/manager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
//! Manager module for crypto asset information and workers.
1+
//! Manager module for crypto and forex asset information and workers.
22
//!
3-
//! Provides the crypto asset info manager and related types.
3+
//! Provides the crypto and forex asset info manager and related types.
44
55
pub use asset_info::AssetInfoManager;
66

bothan-core/src/manager/asset_info/types.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use std::time::Duration;
44

55
use bothan_lib::types::AssetInfo;
66
use rust_decimal::Decimal;
7-
use strum_macros::AsRefStr;
87

98
use crate::monitoring::types::SignalComputationRecord;
109

@@ -20,14 +19,6 @@ pub enum PriceState {
2019
Unsupported,
2120
}
2221

23-
#[derive(Debug, AsRefStr)]
24-
pub enum AssetType {
25-
#[strum(serialize = "CS")]
26-
Crypto,
27-
#[strum(serialize = "FS")]
28-
Forex,
29-
}
30-
3122
pub struct AssetManagerInfo {
3223
pub bothan_version: String,
3324
pub registry_hash: String,

bothan-htx/src/api/error.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,5 @@ pub enum ListeningError {
5050

5151
/// Indicates a failure to send a pong response to a ping message.
5252
#[error("failed to pong")]
53-
#[allow(clippy::result_large_err)]
5453
PongFailed(#[from] tungstenite::Error),
5554
}

0 commit comments

Comments
 (0)