Merge pull request #581 from Byron/fix-benches
fix(benches): adjust to missing `set_ssl_verifier`
This commit is contained in:
@@ -20,6 +20,7 @@ cache:
|
||||
script:
|
||||
- cargo build --verbose $FEATURES
|
||||
- cargo test --verbose $FEATURES
|
||||
- '[ $TRAVIS_RUST_VERSION = nightly ] && cargo bench --no-run || :'
|
||||
|
||||
addons:
|
||||
apt:
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user