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:
James Wilson
2025-05-09 16:12:18 +01:00
committed by GitHub
parent 98c1d153b6
commit 23c62f3d5d
120 changed files with 399 additions and 322 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ mod view_function_types;
mod view_functions_client;
pub use subxt_core::view_functions::payload::{
dynamic, DefaultPayload, DynamicPayload, Payload, StaticPayload,
DefaultPayload, DynamicPayload, Payload, StaticPayload, dynamic,
};
pub use view_function_types::ViewFunctionsApi;
pub use view_functions_client::ViewFunctionsClient;
@@ -48,7 +48,7 @@ where
pub fn call<Call: Payload>(
&self,
payload: Call,
) -> impl Future<Output = Result<Call::ReturnType, Error>> {
) -> impl Future<Output = Result<Call::ReturnType, Error>> + use<Call, Client, T> {
let client = self.client.clone();
let block_hash = self.block_ref.hash();
// Ensure that the returned future doesn't have a lifetime tied to api.view_functions(),