diff --git a/server/src/bin/server.rs b/server/src/bin/server.rs index f9fc168..832d29d 100644 --- a/server/src/bin/server.rs +++ b/server/src/bin/server.rs @@ -5,7 +5,7 @@ extern crate rocket; use std::{error::Error, io::Cursor, str::FromStr}; -use async_graphql::{http::GraphiQLSource, EmptySubscription, Schema}; +use async_graphql::{extensions, http::GraphiQLSource, EmptySubscription, Schema}; use async_graphql_rocket::{GraphQLQuery, GraphQLRequest, GraphQLResponse}; use notmuch::{Notmuch, NotmuchError, ThreadSet}; use rocket::{ @@ -228,7 +228,7 @@ async fn main() -> Result<(), Box> { #[cfg(feature = "tantivy")] let schema = schema.data(tantivy_conn); - let schema = schema.extension(async_graphql::extensions::Logger).finish(); + let schema = schema.extension(extensions::Logger).finish(); let rkt = rkt.manage(schema).manage(pool).manage(Notmuch::default()); //.manage(Notmuch::with_config("../notmuch/testdata/notmuch.config"))