You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let a = AttrValue::Owned("same".to_string());let b = AttrValue::Static("same");assert_eq!(a.as_ref(), b.as_ref());// <- equalsassert_eq!(a, b)// <- does not equal
@mibes, if you would like to work on it, feel free to. If you don't want to/can't, no problem, I will PR the fix. Please let me know if you take on it so we don't duplicate work.
ranile
changed the title
AttrValue's PartialEq takes the enum varient into accountAttrValue's PartialEq takes the enum variant into account
Nov 19, 2021
* Attempt to fix recursion on display
* Include into_string() for AttrValue
* PartialEq takes the enum variant into account #2161
Co-authored-by: mibes <mibes@avaya.com>
Problem
AttrValue
derivesPartialEq
. 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
a
andb
in above snippet are equal.Screenshots
If applicable, add screenshots to help explain your problem.
Environment:
Questionnaire
The text was updated successfully, but these errors were encountered: