fe86dbb782
* Mark `Arc` with `IsInputType` & `IsOutputType`. We've just updated a service we work with to the latest release of juniper (it's been on a fairly old master commit for some time). In this service we have some fields that are contained within `Arc`s, which I added support for in #479. Since then it seems the new marker traits of `IsInputType` & `IsOutputType` have been added, but they do not support `Arc`, leading to: ``` error[E0277]: the trait bound `Arc<menu::Menu>: IsOutputType<__S>` is not satisfied --> src/graphql.rs:36:1 | 36 | #[juniper::graphql_object(Context=Context)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IsOutputType<__S>` is not implemented for `Arc<menu::Menu>` | = note: required by `juniper::marker::IsOutputType::mark` = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) ``` This commit adds support for those, mirroring the support for `Box`. I'm not sure if there's a good place to add a test for this functionality so that regressions can be avoided in the future? * Add Arc tests & FromInputValue for Arc<T> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
Makefile.toml |