Skip to content

Commit 711d360

Browse files
committed
update examples
1 parent 2ce9be6 commit 711d360

File tree

4 files changed

+0
-6
lines changed

4 files changed

+0
-6
lines changed

tide/dataloader-postgres/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ edition = "2018"
88
async-graphql = { path = "../../..", features = ["dataloader"] }
99
async-graphql-tide = { path = "../../../integrations/tide" }
1010
async-std = "1.9.0"
11-
async-trait = "0.1.42"
1211
itertools = "0.10.0"
1312
sqlx = { version = "0.7.2", features = [
1413
"runtime-async-std-rustls",

tide/dataloader-postgres/src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use async_graphql::{
77
Context, EmptyMutation, EmptySubscription, FieldError, Object, Result, Schema, SimpleObject,
88
};
99
use async_std::task;
10-
use async_trait::async_trait;
1110
use sqlx::PgPool;
1211
use tide::{http::mime, Body, Response, StatusCode};
1312

@@ -26,7 +25,6 @@ impl BookLoader {
2625
}
2726
}
2827

29-
#[async_trait]
3028
impl Loader<i32> for BookLoader {
3129
type Value = Book;
3230
type Error = FieldError;

tide/dataloader/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ async-graphql-tide = { path = "../../../integrations/tide" }
1010
tide = "0.16"
1111
async-std = "1.9.0"
1212
sqlx = { version = "0.7.2", features = ["sqlite", "runtime-async-std-rustls"] }
13-
async-trait = "0.1.30"
1413
itertools = "0.9.0"
1514

1615
[dev-dependencies]

tide/dataloader/src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use async_graphql::{
77
Context, EmptyMutation, EmptySubscription, FieldError, Object, Result, Schema, SimpleObject,
88
};
99
use async_std::task;
10-
use async_trait::async_trait;
1110
use itertools::Itertools;
1211
use sqlx::{Pool, Sqlite};
1312
use tide::{http::mime, Body, Response, StatusCode};
@@ -27,7 +26,6 @@ impl BookLoader {
2726
}
2827
}
2928

30-
#[async_trait]
3129
impl Loader<i32> for BookLoader {
3230
type Value = Book;
3331
type Error = FieldError;

0 commit comments

Comments
 (0)