Skip to content

Commit

Permalink
chore: make clippy happy again
Browse files Browse the repository at this point in the history
  • Loading branch information
samgozman committed Apr 28, 2024
1 parent b03f234 commit 89908e8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/structure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,13 +302,13 @@ mod tests {
assert_eq!(selectors.position(&s1), 1);

// Test the Index trait
assert_eq!(selectors[&s0].name, selectors[0].name);
assert_eq!(selectors[&s1].path, selectors[1].path);
assert_eq!(selectors[0].name, selectors[0].name);
assert_eq!(selectors[1].path, selectors[1].path);

// Test the IndexMut trait
let mut selectors = vec![s0.clone(), s1.clone()];
selectors[&s0].name = "test".to_string();
selectors[&s1].path = "test2".to_string();
let mut selectors = [s0.clone(), s1.clone()];
selectors[0].name = "test".to_string();
selectors[1].path = "test2".to_string();
}

#[test]
Expand Down Expand Up @@ -341,9 +341,9 @@ mod tests {
);

// Test the IndexMut trait
let mut resources = vec![r0.clone(), r1.clone()];
resources[&r0].url = "https://test.com/?id=%%".to_string();
resources[&r1].selectors[0].name = "test".to_string();
let mut resources = [r0.clone(), r1.clone()];
resources[0].url = "https://test.com/?id=%%".to_string();
resources[1].selectors[0].name = "test".to_string();

// Test mut_url_with_param
let mut r2 = r0.clone();
Expand Down

0 comments on commit 89908e8

Please sign in to comment.