mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
fmt
This commit is contained in:
@@ -126,11 +126,11 @@ impl AuthActivity {
|
||||
InputProtocol::Sftp => {
|
||||
self.secure = false;
|
||||
self.protocol = FileTransferProtocol::Sftp;
|
||||
},
|
||||
}
|
||||
InputProtocol::Ftp => {
|
||||
self.secure = false;
|
||||
self.protocol = FileTransferProtocol::Ftp;
|
||||
},
|
||||
}
|
||||
InputProtocol::Ftps => {
|
||||
self.secure = true;
|
||||
self.protocol = FileTransferProtocol::Ftp;
|
||||
@@ -335,7 +335,8 @@ impl AuthActivity {
|
||||
///
|
||||
/// Draw protocol select
|
||||
fn draw_protocol_select(&self) -> Tabs {
|
||||
let protocols: Vec<Spans> = vec![Spans::from("SFTP"), Spans::from("FTP"), Spans::from("FTPS")];
|
||||
let protocols: Vec<Spans> =
|
||||
vec![Spans::from("SFTP"), Spans::from("FTP"), Spans::from("FTPS")];
|
||||
let index: usize = match self.input_protocol {
|
||||
InputProtocol::Sftp => 0,
|
||||
InputProtocol::Ftp => 1,
|
||||
@@ -352,7 +353,7 @@ impl AuthActivity {
|
||||
Style::default()
|
||||
.add_modifier(Modifier::BOLD)
|
||||
.bg(Color::Green)
|
||||
.fg(Color::Black)
|
||||
.fg(Color::Black),
|
||||
)
|
||||
}
|
||||
|
||||
@@ -560,8 +561,8 @@ impl Activity for AuthActivity {
|
||||
Some(mut ctx) => {
|
||||
let _ = ctx.terminal.clear();
|
||||
Some(ctx)
|
||||
},
|
||||
None => None
|
||||
}
|
||||
None => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user