Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Commit 9735a11

Browse files
committed
dxr/dxr_client: fix and / or silence some new clippy warnings
1 parent 5716c5a commit 9735a11

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ authors = ["Fabio Valentini <decathorpe@gmail.com>"]
1717
repository = "https://github.com/ironthree/dxr"
1818

1919
[workspace.dependencies]
20-
dxr = { path = "./dxr", version = "0.7.0" }
20+
dxr = { path = "./dxr", version = "0.7.0" }
2121
dxr_derive = { path = "./dxr_derive", version = "0.7.0" }
2222
dxr_client = { path = "./dxr_client", version = "0.7.0" }
2323
dxr_server = { path = "./dxr_server", version = "0.7.0" }

dxr/src/checks/values.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ fn roundtrip_struct_cow_str(string: String) -> bool {
178178
#[cfg(feature = "derive")]
179179
#[quickcheck]
180180
fn roundtrip_struct_cow_bytes(bytes: Vec<u8>) -> bool {
181+
#[allow(clippy::owned_cow)]
181182
#[derive(Debug, Eq, PartialEq, TryFromValue, TryToValue)]
182183
struct TestCow<'a> {
183184
bytes: Cow<'a, Vec<u8>>,

dxr/src/tests/impls/values.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ fn to_cow_borrowed() {
244244

245245
#[test]
246246
fn to_cow_owned_bytes() {
247+
#[allow(clippy::owned_cow)]
247248
let value: Cow<'_, Vec<u8>> = Cow::Owned(b"123".to_vec());
248249
let expected = Value::base64(b"123".to_vec());
249250

dxr_client/src/reqwest_support.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ impl Client {
161161
/// *Note*: This method does not check if the number of method calls matches the number of
162162
/// returned results.
163163
#[cfg(feature = "multicall")]
164-
pub async fn multicall<'a, P: TryToParams>(
164+
pub async fn multicall<P: TryToParams>(
165165
&self,
166166
calls: Vec<(String, P)>,
167167
) -> Result<Vec<Result<Value, Fault>>, ClientError> {

0 commit comments

Comments
 (0)