chore: address Rust 1.70 clippy lints (#1334)

This commit is contained in:
Sanchith Hegde
2023-06-02 13:30:39 +05:30
committed by GitHub
parent 6f1a1a3bcb
commit b681f78d96
2 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ fn basic() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
};
// clone
#[allow(clippy::redundant_clone)] // We are asserting that the cloned value is equal
let composite2 = composite.clone();
assert_eq!(composite, composite2);
@ -134,7 +134,7 @@ fn for_string() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
};
// clone
#[allow(clippy::redundant_clone)] // We are asserting that the cloned value is equal
let composite2 = composite.clone();
assert_eq!(composite, composite2);