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

Fix skeptic and enable tests in Travis #11

Merged
merged 5 commits into from
Sep 13, 2018

Conversation

LegNeato
Copy link
Member

No description provided.

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 92d611f into graphql-rust:source Sep 13, 2018
@LegNeato LegNeato deleted the fix_tests branch September 13, 2018 22:33
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