Skip to content

Commit

Permalink
Clean up test warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelbuesing committed Mar 26, 2020
1 parent 8b9fa8e commit 5599828
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/db/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ mod tests {
let implicit_on_clause = mobile_shops::table.inner_join(
delivery_points::table.on(mobile_shops::route_id.eq(delivery_points::route_id)),
);
let implicit_on_clause_sql =
let _implicit_on_clause_sql =
dbg!(diesel::debug_query::<Pg, _>(&implicit_on_clause).to_string());

let pg_connection_manager =
ConnectionManager::new("postgres://postgres:changeme@localhost/lieferemma");
let pg_connection_pool = r2d2::Pool::new(pg_connection_manager).unwrap();
let pg_connection = pg_connection_pool.get().unwrap();
// let pg_connection_manager =
// ConnectionManager::new("postgres://postgres:changeme@localhost/lieferemma");
// let pg_connection_pool = r2d2::Pool::new(pg_connection_manager).unwrap();
// let pg_connection = pg_connection_pool.get().unwrap();

mobile_shops(pg_connection);
// mobile_shops(pg_connection).unwrap();
}
}

Expand Down

0 comments on commit 5599828

Please sign in to comment.