Skip to content

Commit

Permalink
fix(test): explicit default type in custom icon test (#247)
Browse files Browse the repository at this point in the history
fixes #246

The uuid crate has added an additional NonNilUuid type that implements
PartialEq<Uuid> [1], so we need to be specific about what type to
compare against.

[1] uuid-rs/uuid@f570b57
  • Loading branch information
sseemayer authored Jan 16, 2025
1 parent 406d87e commit e4919d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xml_db/parse/meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ mod parse_meta_test {
xml_db::parse::{parse_test::parse_test_xml, XmlParseError},
};

use uuid::uuid;
use uuid::{uuid, Uuid};

#[test]
fn test_meta() -> Result<(), XmlParseError> {
Expand Down Expand Up @@ -453,7 +453,7 @@ mod parse_meta_test {
#[test]
fn test_custom_icon() -> Result<(), XmlParseError> {
let value = parse_test_xml::<Icon>("<Icon></Icon>")?;
assert_eq!(value.uuid, Default::default());
assert_eq!(value.uuid, Uuid::default());
assert_eq!(value.data.len(), 0);

let value = parse_test_xml::<Icon>(
Expand Down

0 comments on commit e4919d2

Please sign in to comment.