Skip to content

Commit bebe8c0

Browse files
committed
fixed #658 - make Handle::tcpip_forward and Handle::streamlocal_forward take &self
1 parent b7ce487 commit bebe8c0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

russh/src/client/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ impl<H: Handler> Handle<H> {
696696
///
697697
/// If port == 0 the server will choose a port that will be returned, returns 0 otherwise
698698
pub async fn tcpip_forward<A: Into<String>>(
699-
&mut self,
699+
&self,
700700
address: A,
701701
port: u32,
702702
) -> Result<u32, crate::Error> {
@@ -748,7 +748,7 @@ impl<H: Handler> Handle<H> {
748748

749749
// Requests the server to open a UDS forward channel
750750
pub async fn streamlocal_forward<A: Into<String>>(
751-
&mut self,
751+
&self,
752752
socket_path: A,
753753
) -> Result<(), crate::Error> {
754754
let (reply_send, reply_recv) = oneshot::channel();

0 commit comments

Comments
 (0)