Filetransfer port is u16

This commit is contained in:
ChristianVisintin
2020-11-24 22:14:37 +01:00
parent d871497a49
commit 067f5e710a
2 changed files with 2 additions and 2 deletions

View File

@@ -72,7 +72,7 @@ pub trait FileTransfer {
/// ///
/// Connect to the remote server /// 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 /// ### disconnect
/// ///

View File

@@ -110,7 +110,7 @@ impl FileTransfer for SftpFileTransfer {
fn connect( fn connect(
&mut self, &mut self,
address: String, address: String,
port: usize, port: u16,
username: Option<String>, username: Option<String>,
password: Option<String>, password: Option<String>,
) -> Result<(), FileTransferError> { ) -> Result<(), FileTransferError> {