Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Add IntoFieldError to error docs #10

Merged
merged 6 commits into from
Sep 13, 2018
Merged

Conversation

LegNeato
Copy link
Member

Part of #8.

Rather than using a node image and installing rust,
we will use the rust images and install node.

This makes it easy to test on stable/beta/nightly.
These are failing to build and I don't know why:
```
error[E0277]: expected a `std::ops::Fn<(&mut iron::request::Request<'_, '_>,)>` closure, found `juniper_iron::GraphQLHandler<'_, for<'r, 's, 't0> fn(&'r mut iron::Request<'s, 't0>) -> std::result::Result<(), iron::IronError> {context_factory}, Root, juniper::EmptyMutation<()>, ()>`
  --> /var/folders/f3/7xdpkjk508z7b90jfqg1dn2m0000gn/T/rust-skeptic.vXzza3OIPuba/test.rs:34:11
   |
34 |     mount.mount("/graphql", graphql_endpoint);
   |           ^^^^^ expected an `Fn<(&mut iron::request::Request<'_, '_>,)>` closure, found `juniper_iron::GraphQLHandler<'_, for<'r, 's, 't0> fn(&'r mut iron::Request<'s, 't0>) -> std::result::Result<(), iron::IronError> {context_factory}, Root, juniper::EmptyMutation<()>, ()>`
   |
   = help: the trait `for<'r, 's, 't0> std::ops::Fn<(&'r mut iron::request::Request<'s, 't0>,)>` is not implemented for `juniper_iron::GraphQLHandler<'_, for<'r, 's, 't0> fn(&'r mut iron::Request<'s, 't0>) -> std::result::Result<(), iron::IronError> {context_factory}, Root, juniper::EmptyMutation<()>, ()>`
   = note: required because of the requirements on the impl of `iron::middleware::Handler` for `juniper_iron::GraphQLHandler<'_, for<'r, 's, 't0> fn(&'r mut iron::Request<'s, 't0>) -> std::result::Result<(), iron::IronError> {context_factory}, Root, juniper::EmptyMutation<()>, ()>`

error[E0277]: expected a `std::ops::Fn<(&mut iron::Request<'_, '_>,)>` closure, found `mount::Mount`
  --> /var/folders/f3/7xdpkjk508z7b90jfqg1dn2m0000gn/T/rust-skeptic.vXzza3OIPuba/test.rs:36:17
   |
36 |     let chain = Chain::new(mount);
   |                 ^^^^^^^^^^ expected an `Fn<(&mut iron::Request<'_, '_>,)>` closure, found `mount::Mount`
   |
   = help: the trait `for<'r, 's, 't0> std::ops::Fn<(&'r mut iron::Request<'s, 't0>,)>` is not implemented for `mount::Mount`
   = note: required because of the requirements on the impl of `iron::Handler` for `mount::Mount`
   = note: required by `iron::Chain::new`

error: aborting due to 2 previous errors
```
@LegNeato LegNeato merged commit 6d05ce4 into graphql-rust:source Sep 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant