bitcoind: fix a clippy warning about lifetime ellision

This commit is contained in:
Antoine Poinsot 2023-02-17 10:22:08 +01:00
parent 04eb511366
commit 8965758421
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304

View File

@ -343,11 +343,11 @@ impl BitcoinD {
}
}
fn make_request_inner<'a, 'b>(
fn make_request_inner(
&self,
client: &Client,
method: &'a str,
params: &'b [Box<serde_json::value::RawValue>],
method: &str,
params: &[Box<serde_json::value::RawValue>],
retry: bool,
) -> Result<Json, BitcoindError> {
let req = client.build_request(method, params);
@ -358,11 +358,11 @@ impl BitcoinD {
}
}
fn make_request<'a, 'b>(
fn make_request(
&self,
client: &Client,
method: &'a str,
params: &'b [Box<serde_json::value::RawValue>],
method: &str,
params: &[Box<serde_json::value::RawValue>],
) -> Result<Json, BitcoindError> {
self.make_request_inner(client, method, params, true)
}