mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 15:51:12 +00:00
Update to 2024 edition (#2001)
* Update to 2024 edition * Update to 2024 edition; fmt, use<> and remove refs * async functions
This commit is contained in:
@@ -10,5 +10,5 @@ mod storage_type;
|
||||
pub use storage_client::StorageClient;
|
||||
pub use storage_type::{Storage, StorageKeyValuePair};
|
||||
pub use subxt_core::storage::address::{
|
||||
dynamic, Address, DefaultAddress, DynamicAddress, StaticAddress, StaticStorageKey, StorageKey,
|
||||
Address, DefaultAddress, DynamicAddress, StaticAddress, StaticStorageKey, StorageKey, dynamic,
|
||||
};
|
||||
|
||||
@@ -113,7 +113,7 @@ where
|
||||
pub fn fetch<'address, Addr>(
|
||||
&self,
|
||||
address: &'address Addr,
|
||||
) -> impl Future<Output = Result<Option<Addr::Target>, Error>> + 'address
|
||||
) -> impl Future<Output = Result<Option<Addr::Target>, Error>> + use<'address, Addr, Client, T>
|
||||
where
|
||||
Addr: Address<IsFetchable = Yes> + 'address,
|
||||
{
|
||||
@@ -142,7 +142,7 @@ where
|
||||
pub fn fetch_or_default<'address, Addr>(
|
||||
&self,
|
||||
address: &'address Addr,
|
||||
) -> impl Future<Output = Result<Addr::Target, Error>> + 'address
|
||||
) -> impl Future<Output = Result<Addr::Target, Error>> + use<'address, Addr, Client, T>
|
||||
where
|
||||
Addr: Address<IsFetchable = Yes, IsDefaultable = Yes> + 'address,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user