fix(benches): adjust to missing set_ssl_verifier

In 53bba6e , ssl usage was improved. The existing benchmark
implementation wasn't adjusted though.

This commit fixes the client benchmark to work with the latest nightly
rust and instructs travis to try compile the benchmarks
when rustc nightly is used. This should prevent such kind of breakage
in future.
This commit is contained in:
Sebastian Thiel
2015-06-26 14:06:47 +02:00
parent 5bf91f09ee
commit eb38a11b9a
2 changed files with 3 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
#![deny(warnings)]
#![feature(collections, test)]
#![feature(vec_push_all, test)]
extern crate hyper;
extern crate test;
@@ -8,7 +8,7 @@ use std::fmt;
use std::io::{self, Read, Write, Cursor};
use std::net::SocketAddr;
use hyper::net::{self, ContextVerifier};
use hyper::net;
static README: &'static [u8] = include_bytes!("../README.md");
@@ -82,10 +82,6 @@ impl net::NetworkConnector for MockConnector {
fn connect(&self, _: &str, _: u16, _: &str) -> hyper::Result<MockStream> {
Ok(MockStream::new())
}
fn set_ssl_verifier(&mut self, _verifier: ContextVerifier) {
// pass
}
}
#[bench]