Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Commit

Permalink
Allow resolve_trait_on_defaulted_unit to allow build on latest stable
Browse files Browse the repository at this point in the history
  • Loading branch information
lawliet89 committed Sep 18, 2017
1 parent d3b1aeb commit 5d41374
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/form_data/form_data.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(resolve_trait_on_defaulted_unit)]
#[macro_use] extern crate nickel;
use nickel::{Nickel, HttpRouter, FormBody};
use std::collections::HashMap;
Expand Down
1 change: 1 addition & 0 deletions examples/integration_testing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ fn main() {
start_server(address, database).unwrap();
}

#[allow(resolve_trait_on_defaulted_unit)]
fn start_server<D>(address: &str, database: D) -> Result<ListeningServer, Box<StdError>>
where D: Database {
let server_data = ServerData {
Expand Down
1 change: 1 addition & 0 deletions examples/template.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(resolve_trait_on_defaulted_unit)]
#[macro_use] extern crate nickel;

use nickel::{Nickel, HttpRouter};
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![doc(test(attr(deny(warnings))))]
#![doc(test(attr(allow(resolve_trait_on_defaulted_unit))))]
#![allow(resolve_trait_on_defaulted_unit)]

extern crate time;
extern crate rustc_serialize as serialize;
Expand Down
1 change: 1 addition & 0 deletions tests/examples/integration_testing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

#![allow(dead_code)]
#![allow(unused_attributes)]
#![allow(resolve_trait_on_defaulted_unit)]
include!("../../examples/integration_testing.rs");

0 comments on commit 5d41374

Please sign in to comment.