From 3726299eacedee0c9cdb5fad2f5605a4fa507571 Mon Sep 17 00:00:00 2001 From: Ermine Jose Date: Wed, 20 Nov 2024 13:24:30 +0530 Subject: [PATCH] fix: unused import error --- autonomi/src/client/archive_private.rs | 2 +- autonomi/src/client/data.rs | 6 ++++-- autonomi/src/client/fs.rs | 4 ++-- autonomi/src/client/registers.rs | 7 ++++--- evmlib/src/testnet.rs | 3 +-- 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/autonomi/src/client/archive_private.rs b/autonomi/src/client/archive_private.rs index a4e43a6d4c..92cadfa119 100644 --- a/autonomi/src/client/archive_private.rs +++ b/autonomi/src/client/archive_private.rs @@ -136,4 +136,4 @@ impl Client { debug!("Private archive successfully uploaded to the network"); private_archive_access_result } -} \ No newline at end of file +} diff --git a/autonomi/src/client/data.rs b/autonomi/src/client/data.rs index 79f3a045a0..b5bf8c7182 100644 --- a/autonomi/src/client/data.rs +++ b/autonomi/src/client/data.rs @@ -221,7 +221,6 @@ impl Client { let key = NetworkAddress::from_chunk_address(ChunkAddress::new(addr)).to_record_key(); debug!("Converted chunk address to network record key: {:?}", key); - let get_cfg = GetRecordCfg { get_quorum: Quorum::One, retry_strategy: None, @@ -244,7 +243,10 @@ impl Client { debug!("Chunk deserialized successfully: {:?}", chunk); Ok(chunk) } else { - error!("Record kind mismatch: expected Chunk, got {:?}", header.kind); + error!( + "Record kind mismatch: expected Chunk, got {:?}", + header.kind + ); Err(NetworkError::RecordKindMismatch(RecordKind::Chunk).into()) } } diff --git a/autonomi/src/client/fs.rs b/autonomi/src/client/fs.rs index 88ea068eea..5ff88669ca 100644 --- a/autonomi/src/client/fs.rs +++ b/autonomi/src/client/fs.rs @@ -173,9 +173,9 @@ impl Client { path: PathBuf, wallet: &EvmWallet, ) -> Result { - info!("Uploading file: {path:?}"); + info!("Uploadings file: {path:?}"); #[cfg(feature = "loud")] - println!("Uploading file: {path:?}"); + println!("Uploadings file: {path:?}"); let data = tokio::fs::read(path).await?; let data = Bytes::from(data); diff --git a/autonomi/src/client/registers.rs b/autonomi/src/client/registers.rs index 96fadf9cd1..76f0c3e4cc 100644 --- a/autonomi/src/client/registers.rs +++ b/autonomi/src/client/registers.rs @@ -273,10 +273,11 @@ impl Client { let pk = owner.public_key(); let permissions = Permissions::new_with([pk]); - let register_created = - self.register_create_with_permissions(value, name, owner, permissions, wallet).await; + let reg_created = self + .register_create_with_permissions(value, name, owner, permissions, wallet) + .await; debug!("Register created successfully"); - register_created + reg_created } /// Creates a new Register with a name and an initial value and uploads it to the network. diff --git a/evmlib/src/testnet.rs b/evmlib/src/testnet.rs index 57a9a12c4b..ac835bb50b 100644 --- a/evmlib/src/testnet.rs +++ b/evmlib/src/testnet.rs @@ -20,7 +20,6 @@ use alloy::providers::fillers::{ use alloy::providers::{Identity, ProviderBuilder, ReqwestProvider}; use alloy::signers::local::PrivateKeySigner; use alloy::transports::http::{Client, Http}; -use serde::de; pub struct Testnet { anvil: AnvilInstance, @@ -150,7 +149,7 @@ pub async fn deploy_data_payments_contract( .on_http(rpc_url.clone()); // Deploy the contract. - let deployed = DataPaymentsHandler::deploy(provider, token_address).await; + let deployed = DataPaymentsHandler::deploy(provider, token_address).await; let address = *deployed.contract.address(); debug!("Deployed data payments contract at {address}"); deployed