Skip to content

Commit 122e5d3

Browse files
committed
test-store: Fix warnings with --release
1 parent b4f2c18 commit 122e5d3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

store/test-store/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
extern crate diesel;
33

44
use crate::tokio::runtime::{Builder, Runtime};
5-
use diesel::{Connection, PgConnection};
65
use graph::data::graphql::effort::LoadManager;
76
use graph::log;
87
use graph::prelude::{Store as _, *};
@@ -143,6 +142,8 @@ where
143142

144143
#[cfg(debug_assertions)]
145144
pub fn remove_subgraphs() {
145+
use diesel::{Connection, PgConnection};
146+
146147
let url = postgres_test_url();
147148
let conn = PgConnection::establish(url.as_str()).expect("Failed to connect to Postgres");
148149
graph_store_postgres::store::delete_all_entities_for_test_use_only(&*STORE, &conn)
@@ -264,6 +265,7 @@ pub fn insert_entities(
264265
#[cfg(debug_assertions)]
265266
pub mod block_store {
266267
use diesel::prelude::*;
268+
use diesel::{Connection, PgConnection};
267269
use std::str::FromStr;
268270

269271
use graph::prelude::{serde_json, web3::types::H256};

0 commit comments

Comments
 (0)