Skip to content

Commit 085d7b0

Browse files
committed
fix(mock): adjust ChannelMockConnector connect method to compile
1 parent c3eb828 commit 085d7b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl ChannelMockConnector {
100100
impl NetworkConnector for ChannelMockConnector {
101101
type Stream = MockStream;
102102
#[inline]
103-
fn connect(&mut self, _host: &str, _port: u16, _scheme: &str)
103+
fn connect(&self, _host: &str, _port: u16, _scheme: &str)
104104
-> ::Result<MockStream> {
105105
self.calls.send("connect".into()).unwrap();
106106
Ok(MockStream::new())

0 commit comments

Comments
 (0)