Skip to content

Commit

Permalink
chore(*): clippy::needless_borrows_for_generic_args (#3639)
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez authored Oct 25, 2024
1 parent 48a6251 commit 123b013
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions crates/iota-core/src/traffic_controller/nodefw_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl NodeFWClient {
pub async fn block_addresses(&self, addresses: BlockAddresses) -> Result<(), reqwest::Error> {
let response = self
.client
.post(&format!("{}/block_addresses", self.remote_fw_url))
.post(format!("{}/block_addresses", self.remote_fw_url))
.json(&addresses)
.send()
.await?;
Expand All @@ -45,7 +45,7 @@ impl NodeFWClient {

pub async fn list_addresses(&self) -> Result<BlockAddresses, reqwest::Error> {
self.client
.get(&format!("{}/list_addresses", self.remote_fw_url))
.get(format!("{}/list_addresses", self.remote_fw_url))
.send()
.await?
.error_for_status()?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ fn random_alias_foundry_native_token(
.finish()?,
rng,
));
let metadata = Irc30Metadata::new(&format!("My Native Token {i}"), "MNT", 10)
let metadata = Irc30Metadata::new(format!("My Native Token {i}"), "MNT", 10)
.with_description("A native token for testing");

outputs.push(finish_with_header(
Expand Down
4 changes: 2 additions & 2 deletions crates/iota-source-validation/src/toolchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,9 @@ fn download_and_compile(
let mut dest_binary = dest_version.clone();
dest_binary.extend(["target", "release"]);
if platform == "windows-x86_64" {
dest_binary.push(&format!("iota-{platform}.exe"));
dest_binary.push(format!("iota-{platform}.exe"));
} else {
dest_binary.push(&format!("iota-{platform}"));
dest_binary.push(format!("iota-{platform}"));
}
let dest_binary_os = OsStr::new(dest_binary.as_path());
set_executable_permission(dest_binary_os)?;
Expand Down

0 comments on commit 123b013

Please sign in to comment.