fix(mock): adjust ChannelMockConnector connect method to compile

This commit is contained in:
Sean McArthur
2015-05-10 00:40:21 -07:00
parent c3eb828383
commit 085d7b0752

View File

@@ -100,7 +100,7 @@ impl ChannelMockConnector {
impl NetworkConnector for ChannelMockConnector {
type Stream = MockStream;
#[inline]
fn connect(&mut self, _host: &str, _port: u16, _scheme: &str)
fn connect(&self, _host: &str, _port: u16, _scheme: &str)
-> ::Result<MockStream> {
self.calls.send("connect".into()).unwrap();
Ok(MockStream::new())