Skip to content

Remove GraphQLType impl for unit () type #355

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

Merged
merged 1 commit into from
May 16, 2019

Conversation

theduke
Copy link
Member

@theduke theduke commented May 16, 2019

This impl can cause weird runtime errors and serves
no real practical purpose.

Removing the impl is a breaking change but is the only
way to error out at runtime.

Closes #161.

@theduke theduke mentioned this pull request May 16, 2019
@codecov-io
Copy link

codecov-io commented May 16, 2019

Codecov Report

Merging #355 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #355   +/-   ##
=======================================
  Coverage   86.37%   86.37%           
=======================================
  Files         105      105           
  Lines       15373    15373           
=======================================
  Hits        13279    13279           
  Misses       2094     2094
Impacted Files Coverage Δ
juniper/src/types/scalars.rs 87.97% <ø> (ø) ⬆️

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 cff6036...aafddc5. Read the comment docs.

This impl can cause weird runtime errors and serves
no real practical purpose.

Removing the impl is a breaking change but is the only
way to error out at runtime.
@theduke theduke force-pushed the remove-graphqltype-unit-impl branch from 185f023 to aafddc5 Compare May 16, 2019 12:18
@theduke theduke requested a review from LegNeato May 16, 2019 12:22
@LegNeato LegNeato merged commit d47aa99 into graphql-rust:master May 16, 2019
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.

FieldResult with a unit return type panics
3 participants