Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/result #35

Merged
merged 2 commits into from Feb 12, 2019
Merged

Feature/result #35

merged 2 commits into from Feb 12, 2019

Conversation

jeikabu
Copy link
Owner

@jeikabu jeikabu commented Feb 12, 2019

No description provided.

- Rename NngResult to more canonical `Result` and get rid of NngReturn
- Rename NngFail to more canonical runng::Error
	- TryFrom conversion for NngFail
	- impl std::error::Error
	- Err and Unknown enums now Errno and UnknownErrno, respectively.
- Rename `NngFail::succeed_then()` to `zero_map()`
	- Zero is `Ok` and then it's the same as `Result::map`
- Tests use fewer glob (*) imports
- impl AsRef/AsMut<[u8]> for Alloc and NngMsg
	- https://rust-lang-nursery.github.io/api-guidelines/interoperability.html#conversions-use-the-standard-traits-from-asref-asmut-c-conv-traits
@codecov
Copy link

codecov bot commented Feb 12, 2019

Codecov Report

❗ No coverage uploaded for pull request base (dev@26a04e8). Click here to learn what that means.
The diff coverage is 88.28%.

Impacted file tree graph

@@          Coverage Diff          @@
##             dev     #35   +/-   ##
=====================================
  Coverage       ?   88.9%           
=====================================
  Files          ?      37           
  Lines          ?    1451           
  Branches       ?       0           
=====================================
  Hits           ?    1290           
  Misses         ?     161           
  Partials       ?       0
Impacted Files Coverage Δ
runng/src/memory.rs 90.47% <ø> (ø)
runng/src/lib.rs 88.88% <ø> (ø)
runng/src/pipe.rs 81.48% <ø> (ø)
runng/src/protocol/pull0.rs 100% <100%> (ø)
runng/tests/tests/pushpull_tests.rs 100% <100%> (ø)
runng/src/asyncio/push.rs 89.58% <100%> (ø)
runng/src/protocol/pair1.rs 61.53% <100%> (ø)
runng/src/listener.rs 100% <100%> (ø)
runng/src/protocol/sub0.rs 100% <100%> (ø)
runng/src/aio.rs 96.66% <100%> (ø)
... and 27 more

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 26a04e8...64cc3f3. Read the comment docs.

@jeikabu jeikabu merged commit cc67d5e into dev Feb 12, 2019
@jeikabu jeikabu deleted the feature/result branch February 12, 2019 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant