Skip to content

Commit

Permalink
fmt workflow clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartosz Nowak committed Nov 2, 2023
1 parent 7252480 commit 0be30ec
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust Build
name: Master build

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# KSOX-SERVER

[![GitHub Workflow Status Rust Build](https://github.com/visoftsolutions/ksox-server/actions/workflows/rust.yml/badge.svg)](https://github.com/visoftsolutions/ksox-server/actions/workflows/rust.yml)
[![GitHub Workflow Status Rust Build](https://github.com/visoftsolutions/ksox-server/actions/workflows/master_build.yml/badge.svg)](https://github.com/visoftsolutions/ksox-server/actions/workflows/master_build.yml)
![Version](https://img.shields.io/badge/version-0.1.0-blue)

## 🚀 Quick Start Guide
Expand Down
10 changes: 5 additions & 5 deletions core/models/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ description = { workspace = true }
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
uuid = { workspace = true }
num-bigint = { version = "0.4.4", features = ["serde"] }
serde = { version = "1.0.190", features = ["derive"] }
num-rational = "0.4"
num-decimal = "0.2.5"
num-traits = "0.2.17"
num-derive = "0.4.1"
num-rational = "0.4"
num-traits = "0.2.17"
serde = { version = "1.0.190", features = ["derive"] }
uuid = { workspace = true }

[dev-dependencies]
proptest = "1.3.1"
serde_json = "1.0.108"
serde_json = "1.0.108"
4 changes: 2 additions & 2 deletions core/models/src/fraction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,15 +387,15 @@ mod tests {

const TESTS_CASES: u32 = 1000;
const FRACTION_BYTES: usize = 4;

proptest! {
#![proptest_config(ProptestConfig::with_cases(TESTS_CASES))]
#[test]
fn serialization(fraction in any_with::<Fraction>(FRACTION_BYTES)) {
assert_eq!(fraction, serde_json::from_str(&serde_json::to_string(&fraction).unwrap()).unwrap());
}
}

const ACCURACY: usize = 1000;
proptest! {
#![proptest_config(ProptestConfig::with_cases(TESTS_CASES))]
Expand Down
4 changes: 2 additions & 2 deletions core/models/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
mod asset;
mod balance;
mod fraction;
mod network;
mod order;
mod trade;
mod user;
mod fraction;

pub use asset::AssetRaw;
pub use balance::BalanceRaw;
pub use fraction::Fraction;
pub use network::Network;
pub use order::OrderRaw;
pub use trade::TradeRaw;
pub use user::UserRaw;
pub use fraction::Fraction;

0 comments on commit 0be30ec

Please sign in to comment.