Skip to content

Commit

Permalink
fix linting warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed May 30, 2024
1 parent 04eec14 commit 5a2b4f3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ mod tests {
let test1 = model
.objects
.iter()
.find(|o| o.name == "Test".to_string())
.find(|o| o.name == *"Test")
.unwrap();

let test2 = model
.objects
.iter()
.find(|o| o.name == "Test2".to_string())
.find(|o| o.name == *"Test2")
.unwrap();

assert_eq!(test1.attributes.len(), 4);
Expand All @@ -55,7 +55,7 @@ mod tests {
let test1_name_attribute = test1
.attributes
.iter()
.find(|a| a.name == "name".to_string())
.find(|a| a.name == *"name")
.unwrap();

assert!(test1_name_attribute.dtypes.contains(&"string".to_string()));
Expand All @@ -64,11 +64,11 @@ mod tests {
let test2_names_attribute = test2
.attributes
.iter()
.find(|a| a.name == "names".to_string())
.find(|a| a.name == *"names")
.unwrap();

assert!(test2_names_attribute.dtypes.contains(&"string".to_string()));
assert!(test2_names_attribute.is_array == true);
assert!(test2_names_attribute.is_array);
}

#[test]
Expand Down

0 comments on commit 5a2b4f3

Please sign in to comment.