Skip to content

Commit 387a95a

Browse files
committed
#
1 parent ba0a505 commit 387a95a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

qapro-rs/examples/factorplayground.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,5 +163,5 @@ async fn main() {
163163
}
164164

165165
println!("calc get row time {:#?}", sw.elapsed());
166-
acc.to_csv("".to_string());
166+
let _ = acc.to_csv("".to_string()).unwrap();
167167
}

qapro-rs/src/qaprotocol/mifi/qafastkline.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ impl QAKlineBase {
137137
self.init_data(data.clone());
138138
}
139139
let new_price = data["close"].as_f64().unwrap();
140-
if (self.high < new_price) {
140+
if self.high < new_price {
141141
self.high = new_price;
142142
}
143-
if (self.low > new_price) {
143+
if self.low > new_price {
144144
self.low = new_price;
145145
}
146146
self.close = new_price;
@@ -267,10 +267,10 @@ impl QAKlineBase {
267267
}
268268

269269
pub fn update_from_bar(&mut self, data: BAR) {
270-
if (self.high < data.high) {
270+
if self.high < data.high {
271271
self.high = data.high;
272272
}
273-
if (self.low > data.low) {
273+
if self.low > data.low {
274274
self.low = data.low;
275275
}
276276
self.close = data.close;

qapro-rs/src/qapubsub/instruct_mq.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use crate::qaruntime::base::Instruct;
22
use crate::qaruntime::qamanagers::monitor_manager::MonitorManager;
33

4-
use actix::prelude::*;
5-
use actix::{Actor, Addr, Context, Handler, Recipient};
4+
5+
use actix::{Actor, Addr, Context};
66
use amiquip::{
77
Channel, Connection, ConsumerMessage, ConsumerOptions, Exchange, ExchangeDeclareOptions,
88
ExchangeType, FieldTable, Publish, QueueDeclareOptions, Result,

0 commit comments

Comments
 (0)