Skip to content

Commit

Permalink
Fix a warning in a scaffold template and make test fail if we add more (
Browse files Browse the repository at this point in the history
#1316)

This warning was introduced in #1303
  • Loading branch information
SimonSapin authored Jun 28, 2022
1 parent c5eea1d commit afb3a09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions apollo-router-scaffold/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ mod test {
fn test_build(dir: &TempDir) -> Result<()> {
let output = Command::new("cargo")
.args(["test"])
.env("RUSTFLAGS", "-Dwarnings")
.current_dir(dir)
.output()?;
if !output.status.success() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
use apollo_router::plugin::Plugin;
use apollo_router::register_plugin;
{{#if type_basic}}
use apollo_router::graphql::Response;
use apollo_router::services::ResponseBody;
use apollo_router::services::{ExecutionRequest, ExecutionResponse};
use apollo_router::services::{QueryPlannerRequest, QueryPlannerResponse};
use apollo_router::services::{RouterRequest, RouterResponse};
use apollo_router::services::{SubgraphRequest, SubgraphResponse};
use apollo_router::Response;
{{/if}}
{{#if type_auth}}
use apollo_router::services::ResponseBody;
Expand Down

0 comments on commit afb3a09

Please sign in to comment.