Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
Signed-off-by: onur-ozkan <work@onurozkan.dev>
  • Loading branch information
onur-ozkan committed Dec 23, 2024
1 parent 48494ce commit 2b59bd5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mm2src/coins/eth/eth_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1045,5 +1045,5 @@ fn test_gas_limit_conf() {
fn test_h256_to_str() {
let h = H256::from_str("5136701f11060010841c9708c3eb26f6606a070b8ae43f4b98b6d7b10a545258").unwrap();
let b: BytesJson = h.0.to_vec().into();
println!("H256={}", format!("0x{:02x}", b));
println!("H256=0x{:02x}", b);
}
2 changes: 1 addition & 1 deletion mm2src/trading_api/src/one_inch_api/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ impl<'a> UrlBuilder<'a> {
let url = self
.base_url
.join(self.endpoint)?
.join(&format!("{}/", self.chain_id.to_string()))?
.join(&format!("{}/", self.chain_id))?
.join(self.method_name.as_str())?;
Ok(Url::parse_with_params(
url.as_str(),
Expand Down
2 changes: 1 addition & 1 deletion mm2src/trading_api/src/one_inch_api/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl NativeError {
match serde_json::from_value(body) {
Ok(err) => Self::HttpError400(err),
Err(err) => Self::ParseError {
error_msg: format!("could not parse error response: {}", err.to_string()),
error_msg: format!("could not parse error response: {}", err),
},
}
} else {
Expand Down

0 comments on commit 2b59bd5

Please sign in to comment.