Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Commit

Permalink
Silence diesel warnings which would be fixed in diesel-1.4
Browse files Browse the repository at this point in the history
This is temporary workaround.
See <diesel-rs/diesel#1785 (comment)>.
  • Loading branch information
lo48576 authored and arkhe634 committed Oct 26, 2018
1 parent f4a6610 commit 8599acf
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions burning-pro-server/src/db/upsert_entry.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
//! Types for upsert query.
// Temporal silence until diesel-1.4.
// See <https://github.com/diesel-rs/diesel/issues/1785#issuecomment-422579609>.
#![allow(proc_macro_derive_resolution_fallback)]

use actix::prelude::*;
use chrono::{DateTime, Local};
use diesel;
Expand Down
5 changes: 5 additions & 0 deletions burning-pro-server/src/models/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
//! Models.
// Temporal silence until diesel-1.4.
// See <https://github.com/diesel-rs/diesel/issues/1785#issuecomment-422579609>.
#![allow(proc_macro_derive_resolution_fallback)]

use chrono::NaiveDateTime;

use schema::*;
Expand Down
4 changes: 4 additions & 0 deletions burning-pro-server/src/models/update.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
//! Data types insertable to DB.
// Temporal silence until diesel-1.4.
// See <https://github.com/diesel-rs/diesel/issues/1785#issuecomment-422579609>.
#![allow(proc_macro_derive_resolution_fallback)]

use chrono::NaiveDateTime;

use schema::*;
Expand Down
4 changes: 4 additions & 0 deletions burning-pro-server/src/schema.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Temporal silence until diesel-1.4.
// See <https://github.com/diesel-rs/diesel/issues/1785#issuecomment-422579609>.
#![allow(proc_macro_derive_resolution_fallback)]

table! {
good_phrase_tags (good_phrase_tag_id) {
good_phrase_tag_id -> Integer,
Expand Down

0 comments on commit 8599acf

Please sign in to comment.