Skip to content

Commit

Permalink
chore: quiet diesel warnings under rust 1.29
Browse files Browse the repository at this point in the history
temporary until (likely) diesel 1.4:
diesel-rs/diesel#1785
  • Loading branch information
pjenvey committed Sep 19, 2018
1 parent b27e3bd commit 6a181f8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/db/models_test.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(proc_macro_derive_resolution_fallback)]

use std::collections::HashMap;

use diesel::{sql_query, sql_types::Integer, QueryDsl, RunQueryDsl};
Expand Down
2 changes: 2 additions & 0 deletions src/db/mysql/models.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(proc_macro_derive_resolution_fallback)]

use std::{self, ops::Deref};

use diesel::{
Expand Down
2 changes: 2 additions & 0 deletions src/db/mysql/schema.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(proc_macro_derive_resolution_fallback)]

table! {
batches (user_id, collection_id, id) {
user_id -> Integer,
Expand Down
2 changes: 2 additions & 0 deletions src/db/results.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//! Result types for database methods.

#![allow(proc_macro_derive_resolution_fallback)]

use std::collections::HashMap;

use diesel::sql_types::{BigInt, Integer, Nullable, Text};
Expand Down

0 comments on commit 6a181f8

Please sign in to comment.