Skip to content

Commit

Permalink
lint: format codes (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmountaintop authored Mar 9, 2021
1 parent d06435a commit 1c7e267
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/matchengine/market.rs
Original file line number Diff line number Diff line change
Expand Up @@ -940,12 +940,12 @@ mod tests {
use super::*;
use crate::asset::AssetManager;
use rust_decimal_macros::*;
use std::fs::File;
use std::io::Write;
// use std::fs::File;
// use std::io::Write;
//use std::fmt::{Error};
//use std::io::prelude::*;
use rand::Rng;
use rust_decimal::prelude::FromPrimitive;
// use rand::Rng;
// use rust_decimal::prelude::FromPrimitive;

fn get_simple_market_config() -> config::Market {
config::Market {
Expand Down
6 changes: 3 additions & 3 deletions src/matchengine/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,19 +244,19 @@ impl Matchengine for GrpcHandler {
}

#[cfg(not(debug_assertions))]
async fn debug_dump(&self, request: Request<DebugDumpRequest>) -> Result<Response<DebugDumpResponse>, Status> {
async fn debug_dump(&self, _request: Request<DebugDumpRequest>) -> Result<Response<DebugDumpResponse>, Status> {
println!("Warning: Not avaliable in release build");
Ok(Response::new(DebugDumpResponse {}))
}

#[cfg(not(debug_assertions))]
async fn debug_reset(&self, request: Request<DebugResetRequest>) -> Result<Response<DebugResetResponse>, Status> {
async fn debug_reset(&self, _request: Request<DebugResetRequest>) -> Result<Response<DebugResetResponse>, Status> {
println!("Warning: Not avaliable in release build");
Ok(Response::new(DebugResetResponse {}))
}

#[cfg(not(debug_assertions))]
async fn debug_reload(&self, request: Request<DebugReloadRequest>) -> Result<Response<DebugReloadResponse>, Status> {
async fn debug_reload(&self, _request: Request<DebugReloadRequest>) -> Result<Response<DebugReloadResponse>, Status> {
println!("Warning: Not avaliable in release build");
Ok(Response::new(DebugReloadResponse {}))
}
Expand Down

0 comments on commit 1c7e267

Please sign in to comment.