Implement PartialEq<str> on Namespace, Prefix and LocalName - #1011
Conversation
7c22696 to
1e4f093
Compare
|
Once you've fixed the test failures, please add a changelog entry also. |
Allows to easily write comparisons on both
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1011 +/- ##
==========================================
- Coverage 57.31% 55.11% -2.20%
==========================================
Files 46 51 +5
Lines 18197 18809 +612
==========================================
- Hits 10429 10366 -63
- Misses 7768 8443 +675
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@dralley Thank you! Done. I have also added a changelog line for the previous MR you merged (thank you for it) |
|
Not sure about it. Wouldn't it defeat the idea to have distinct types for different things? Now you may compare local name with something with colon, which is definitely will be |
You could, but it feels like the same class of error as, say, calling I see your point though. I think you can make reasonable arguments either way.. I guess I fall slightly on the side of the ergonomic argument personally given it's documented and most novice users would pick
The internal field is only |
Allows to easily write comparisons on both