-
Notifications
You must be signed in to change notification settings - Fork 425
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
Clean up clippy warnings remove try! #135
Conversation
6fb8fba
to
a7d843e
Compare
eb110fc
to
438d56a
Compare
@Atul9 do you need help with figuring out the build failures? |
@theduke Yes, I need help with figuring out the build failures. I had mentioned this on the issue #131 (comment) |
It doesn't appear that `:tt` accepts the `stringify!()`-ed value in this position. The :tt is only later used as an `:expr` to produce the name for metadata purposes. Converting this position to be an `:expr` allows the `stringify!()`-ed value and accepts all current uses of the `graphql_scalar!()` macro in this repository.
The conversions in this changeset cannot use the `From<T>` trait implementation because the conversion is lossy, either because they involve converting a signed value to an unsigned value (`i32`⇒`u64`) or because the convert from a larger data type to a smaller one (`u64`⇒`i32`). In this case, the `as` type cast is necessary to perform a bitwise conversion. This coercion can cause negative values to become very large unsigned values. This is intentional on line 90.
The `E::custom()` function requires a value of any type that implements `fmt::Display`, so a plain `&str` works just fine here.
3685a21
to
5fad1c4
Compare
Codecov Report
@@ Coverage Diff @@
## master #135 +/- ##
==========================================
+ Coverage 90.24% 90.39% +0.14%
==========================================
Files 95 95
Lines 16429 16913 +484
==========================================
+ Hits 14827 15289 +462
- Misses 1602 1624 +22
Continue to review full report at Codecov.
|
@Atul9 @neoeinstein thanks a bunch to you both, that was quite a bite of work. |
@neoeinstein also thanks for the detailed commit messages. ;) |
closes #131