Problem
AttrValue derives PartialEq. That implementation returns false if same string in two different variants is compared.
See #2159
Steps To Reproduce
let a = AttrValue::Owned("same".to_string());
let b = AttrValue::Static("same");
assert_eq!(a.as_ref(), b.as_ref()); // <- equals
assert_eq!(a, b) // <- does not equal
Code snippet taken from #2159
Expected behavior
a and b in above snippet are equal.
assert_eq!(a, b) // <- equals
Screenshots
If applicable, add screenshots to help explain your problem.
Environment:
- Yew version: master
- Rust version: irrelevant
- Target, if relevant: irrelevant
- Build tool, if relevant: irrelevant
- OS, if relevant: irrelevant
- Browser and version, if relevant: irrelevant
Questionnaire
Problem
AttrValuederivesPartialEq. That implementation returns false if same string in two different variants is compared.See #2159
Steps To Reproduce
Code snippet taken from #2159
Expected behavior
aandbin above snippet are equal.Screenshots
If applicable, add screenshots to help explain your problem.
Environment:
Questionnaire