Fixed warnings

This commit is contained in:
veeso
2021-03-27 11:41:47 +01:00
parent 96b7aff3b6
commit 3dbe024029
7 changed files with 15 additions and 124 deletions

View File

@@ -43,8 +43,6 @@ impl FileTransferActivity {
}
// Eventually push front the new record
self.log_records.push_front(record);
// Set log index
self.log_index = 0;
// Update log
let msg = self.update_logbox();
self.update(msg);

View File

@@ -214,7 +214,6 @@ pub struct FileTransferActivity {
remote: FileExplorer, // Remote File explorer state
found: Option<FileExplorer>, // File explorer for find result
tab: FileExplorerTab, // Current selected tab
log_index: usize, // Current log index entry selected
log_records: VecDeque<LogRecord>, // Log records
log_size: usize, // Log records size (max)
transfer: TransferStates, // Transfer states
@@ -244,7 +243,6 @@ impl FileTransferActivity {
remote: Self::build_explorer(config_client.as_ref()),
found: None,
tab: FileExplorerTab::Local,
log_index: 0,
log_records: VecDeque::with_capacity(256), // 256 events is enough I guess
log_size: 256, // Must match with capacity
transfer: TransferStates::default(),