Skip to content

Commit

Permalink
fix clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Jan 30, 2025
1 parent e9d9916 commit b84f902
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/linkml/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ mod tests {
.objects
.iter()
.find(|o| o.name == obj.name)
.expect(&format!("Object {} not found", obj.name));
.unwrap_or_else(|| panic!("Object {} not found", obj.name));
assert_eq!(obj.name, other_obj.name, "Object name mismatch");
assert_eq!(
obj.docstring, other_obj.docstring,
Expand All @@ -291,7 +291,7 @@ mod tests {
.attributes
.iter()
.find(|a| a.name == attr.name)
.expect(&format!("Attribute {} not found", attr.name));
.unwrap_or_else(|| panic!("Attribute {} not found", attr.name));
assert_eq!(attr.name, other_attr.name, "Attribute name mismatch");
}
}
Expand All @@ -301,7 +301,7 @@ mod tests {
.enums
.iter()
.find(|e| e.name == enum_.name)
.expect(&format!("Enum {} not found", enum_.name));
.unwrap_or_else(|| panic!("Enum {} not found", enum_.name));
assert_eq!(enum_.name, other_enum.name, "Enum name mismatch");
assert_eq!(
enum_.docstring, other_enum.docstring,
Expand Down

0 comments on commit b84f902

Please sign in to comment.