Skip to content

Commit

Permalink
chore: address Rust 1.70 clippy lints (#1334)
Browse files Browse the repository at this point in the history
  • Loading branch information
SanchithHegde authored Jun 2, 2023
1 parent 6f1a1a3 commit b681f78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/masking/tests/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion crates/router/src/connector/nexinets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl ConnectorCommon for Nexinets {
.parse_struct("NexinetsErrorResponse")
.change_context(errors::ConnectorError::ResponseDeserializationFailed)?;

let errors = response.errors.clone();
let errors = response.errors;
let mut message = String::new();
let mut static_message = String::new();
for error in errors.iter() {
Expand Down

0 comments on commit b681f78

Please sign in to comment.