Skip to content

Commit 537994f

Browse files
committed
Standardize std trait imports
1 parent 79a2d0c commit 537994f

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

crates/adapters/bitmex/src/execution/canceller.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
// lands so we can drop the per-call heap allocation
3232

3333
use std::{
34+
fmt::Debug,
3435
future::Future,
3536
pin::Pin,
3637
sync::{
@@ -235,7 +236,7 @@ struct TransportClient {
235236
error_count: Arc<AtomicU64>,
236237
}
237238

238-
impl std::fmt::Debug for TransportClient {
239+
impl Debug for TransportClient {
239240
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
240241
f.debug_struct("TransportClient")
241242
.field("client_id", &self.client_id)

crates/adapters/bybit/src/common/enums.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
//! Enumerations that model Bybit string/int enums across HTTP and WebSocket payloads.
1717
18+
use std::fmt::Display;
19+
1820
use nautilus_model::enums::{AggressorSide, OrderSide};
1921
use serde::{Deserialize, Serialize};
2022
use serde_repr::{Deserialize_repr, Serialize_repr};
@@ -322,7 +324,7 @@ pub enum BybitKlineInterval {
322324
Month1,
323325
}
324326

325-
impl std::fmt::Display for BybitKlineInterval {
327+
impl Display for BybitKlineInterval {
326328
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
327329
let s = match self {
328330
Self::Minute1 => "1",

crates/model/src/data/funding.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
//! Domain types representing funding rate data for perpetual swap instruments.
1717
18-
use std::{collections::HashMap, fmt::Display};
18+
use std::{collections::HashMap, fmt::Display, hash::Hash};
1919

2020
use indexmap::IndexMap;
2121
use nautilus_core::{UnixNanos, serialization::Serializable};
@@ -54,7 +54,7 @@ impl PartialEq for FundingRateUpdate {
5454
}
5555
}
5656

57-
impl std::hash::Hash for FundingRateUpdate {
57+
impl Hash for FundingRateUpdate {
5858
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
5959
// Hash only the fields used in PartialEq to maintain consistency
6060
self.instrument_id.hash(state);

0 commit comments

Comments
 (0)