Skip to content

Commit 9947e97

Browse files
committed
fixup! _
1 parent 9037e74 commit 9947e97

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
![Minimum Supported Rust Version](https://img.shields.io/badge/nightly-1.85+-ab6000.svg)
33
[<img alt="crates.io" src="https://img.shields.io/crates/v/v_exchanges.svg?color=fc8d62&logo=rust" height="20" style=flat-square>](https://crates.io/crates/v_exchanges)
44
[<img alt="docs.rs" src="https://img.shields.io/badge/docs.rs-66c2a5?style=for-the-badge&labelColor=555555&logo=docs.rs&style=flat-square" height="20">](https://docs.rs/v_exchanges)
5-
![Lines Of Code](https://img.shields.io/badge/LoC-3919-lightblue)
5+
![Lines Of Code](https://img.shields.io/badge/LoC-3918-lightblue)
66
<br>
77
[<img alt="ci errors" src="https://img.shields.io/github/actions/workflow/status/valeratrades/v_exchanges/errors.yml?branch=master&style=for-the-badge&style=flat-square&label=errors&labelColor=420d09" height="20">](https://github.com/valeratrades/v_exchanges/actions?query=branch%3Amaster) <!--NB: Won't find it if repo is private-->
88
[<img alt="ci warnings" src="https://img.shields.io/github/actions/workflow/status/valeratrades/v_exchanges/warnings.yml?branch=master&style=for-the-badge&style=flat-square&label=warnings&labelColor=d16002" height="20">](https://github.com/valeratrades/v_exchanges/actions?query=branch%3Amaster) <!--NB: Won't find it if repo is private-->

examples/binance/market_futures.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ async fn main() {
2929
}
3030

3131
#[cfg(test)]
32-
mod tests {
33-
#[test]
34-
fn test_main() {
35-
super::main();
36-
}
32+
#[test]
33+
fn test_main() {
34+
main();
3735
}

examples/binance/market_spot.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ async fn main() {
1616
}
1717

1818
#[cfg(test)]
19-
mod tests {
20-
#[test]
21-
fn test_main() {
22-
super::main();
23-
}
19+
#[test]
20+
fn test_main() {
21+
main();
2422
}

examples/bybit/market.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ async fn private(c: &mut Box<dyn Exchange>, m: AbsMarket) {
3333
}
3434

3535
#[cfg(test)]
36-
mod tests {
37-
#[test]
38-
fn test_main() {
39-
super::main();
40-
}
36+
#[test]
37+
fn test_main() {
38+
main();
4139
}

examples/data.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ async fn main() {
1313
let lsr = bn.lsr(("BTC", "USDT").into(), "5m".into(), (24 * 12 + 1).into(), "Global".into()).await.unwrap();
1414
dbg!(&lsr[..2]);
1515
}
16+
17+
#[cfg(test)]
18+
#[test]
19+
fn test_main() {
20+
main();
21+
}

0 commit comments

Comments
 (0)