fix: cargo fmt added to create_release

This commit is contained in:
Jack Wills
2022-04-25 02:53:14 +00:00
parent 3fb48abb87
commit bb29c0ebfa
7 changed files with 18 additions and 21 deletions
+4 -7
View File
@@ -31,8 +31,7 @@ impl AppData {
}
}
// Current time as unix timestamp
// Current time as unix timestamp
fn get_systemtime(&self) -> u64 {
SystemTime::now()
.duration_since(UNIX_EPOCH)
@@ -40,7 +39,6 @@ impl AppData {
.as_secs()
}
/// Get the current select docker command
/// So know which command to execute
pub fn get_docker_command(&self) -> Option<DockerControls> {
@@ -363,8 +361,8 @@ impl AppData {
}
}
/// update logs of a given container, based on index not id
pub fn update_log_by_index(&mut self, output: Vec<String>, index: usize) {
/// update logs of a given container, based on index not id
pub fn update_log_by_index(&mut self, output: Vec<String>, index: usize) {
let tz = self.get_systemtime();
if let Some(container) = self.containers.items.get_mut(index) {
container.last_updated = tz;
@@ -388,8 +386,7 @@ impl AppData {
self.logs_parsed = true;
}
pub fn update_all_logs(&mut self, all_logs: Vec<Vec<String>>) {
pub fn update_all_logs(&mut self, all_logs: Vec<Vec<String>>) {
for (index, output) in all_logs.into_iter().enumerate() {
self.update_log_by_index(output, index);
}