Skip to content

Commit

Permalink
fix(serde_yml): ✅ Removed unnecessary clone calls for types impleme…
Browse files Browse the repository at this point in the history
…nting the `Copy` trait to resolve Clippy warnings.
  • Loading branch information
sebastienrousseau committed Aug 24, 2024
1 parent 4514a35 commit f1991c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/modules/test_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,18 @@ mod tests {

/// Test cloning and copying a Path instance.
///
/// This test checks that cloning and copying a Path instance results in identical paths.
/// This test checks that copying a Path instance results in an identical path.
#[test]
fn test_path_clone_and_copy() {
let root = Path::Root;
let seq = Path::Seq {
parent: &root,
index: 42,
};
let seq_clone = seq.clone();

// No need to explicitly clone, just copy directly
let seq_copy = seq;

assert_eq!(seq, seq_clone);
assert_eq!(seq, seq_copy);
}

Expand Down

0 comments on commit f1991c3

Please sign in to comment.