mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Filetransfer port is u16
This commit is contained in:
@@ -72,7 +72,7 @@ pub trait FileTransfer {
|
||||
///
|
||||
/// Connect to the remote server
|
||||
|
||||
fn connect(&mut self, address: String, port: usize, username: Option<String>, password: Option<String>) -> Result<(), FileTransferError>;
|
||||
fn connect(&mut self, address: String, port: u16, username: Option<String>, password: Option<String>) -> Result<(), FileTransferError>;
|
||||
|
||||
/// ### disconnect
|
||||
///
|
||||
|
||||
@@ -110,7 +110,7 @@ impl FileTransfer for SftpFileTransfer {
|
||||
fn connect(
|
||||
&mut self,
|
||||
address: String,
|
||||
port: usize,
|
||||
port: u16,
|
||||
username: Option<String>,
|
||||
password: Option<String>,
|
||||
) -> Result<(), FileTransferError> {
|
||||
|
||||
Reference in New Issue
Block a user