Skip to content

Commit

Permalink
fix(mock): adjust ChannelMockConnector connect method to compile
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed May 10, 2015
1 parent c3eb828 commit 085d7b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 085d7b0

Please sign in to comment.