From a88d4b4e06c880e92240f1da46ee82ef68383025 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 25 May 2023 15:48:34 +0200 Subject: [PATCH] Format. --- src/server.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/server.rs b/src/server.rs index 1cc68ec..cafc5d9 100644 --- a/src/server.rs +++ b/src/server.rs @@ -3,6 +3,7 @@ use crate::io::{import_from_safes_binary, read_edges_binary, read_edges_csv}; use crate::types::edge::EdgeDB; use crate::types::{Address, Edge, U256}; use json::JsonValue; +use num_bigint::BigUint; use std::error::Error; use std::fmt::{Debug, Display, Formatter}; use std::io::Read; @@ -13,7 +14,6 @@ use std::str::FromStr; use std::sync::mpsc::TrySendError; use std::sync::{mpsc, Arc, Mutex, RwLock}; use std::thread; -use num_bigint::BigUint; struct JsonRpcRequest { id: JsonValue, @@ -171,7 +171,8 @@ fn compute_transfer( if parsed_value_param > U256::MAX.into() { return Err(Box::new(InputValidationError(format!( "Value {} is too large. Maximum value is {}.", - parsed_value_param, U256::MAX + parsed_value_param, + U256::MAX )))); }