Closed danshevluk closed 2 years ago
Merging #128 (7f482aa) into main (dcfb8a8) will increase coverage by
0.05%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## main #128 +/- ##
==========================================
+ Coverage 95.44% 95.50% +0.05%
==========================================
Files 68 68
Lines 3735 3781 +46
==========================================
+ Hits 3565 3611 +46
Misses 170 170
Impacted Files | Coverage Δ | |
---|---|---|
Sources/Operators/MapToValue.swift | 100.00% <100.00%> (ø) |
|
Tests/MapToValueTests.swift | 100.00% <100.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update dcfb8a8...7f482aa. Read the comment docs.
Hello everyone!
After the latest update
1.6.0
our project that usesCombineExt
stopped compiling with a wired error message. After some digging, I figured out that in some cases Swift confusesmap(to:)
extension withmap
operator and uses closure as a constant itself.It can be reproduced with a test case that I added:
One possible solution is to rename this operator to
mapToValue
. This both makes sense semantically, fixes name collision, and is very similar tomapToResult
. Also, added more tests for updatedmapToValue
✨This is my first PR to CombineExt, please let me know what you think! ✌️