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
+1
View File
@@ -193,6 +193,7 @@ release_flow() {
ask_changelog_update ask_changelog_update
git checkout -b "$RELEASE_BRANCH" git checkout -b "$RELEASE_BRANCH"
update_cargo_toml update_cargo_toml
cargo fmt
git add . git add .
git commit -m "chore: release $NEW_TAG_VERSION" git commit -m "chore: release $NEW_TAG_VERSION"
git checkout main git checkout main
-3
View File
@@ -31,7 +31,6 @@ impl AppData {
} }
} }
// Current time as unix timestamp // Current time as unix timestamp
fn get_systemtime(&self) -> u64 { fn get_systemtime(&self) -> u64 {
SystemTime::now() SystemTime::now()
@@ -40,7 +39,6 @@ impl AppData {
.as_secs() .as_secs()
} }
/// Get the current select docker command /// Get the current select docker command
/// So know which command to execute /// So know which command to execute
pub fn get_docker_command(&self) -> Option<DockerControls> { pub fn get_docker_command(&self) -> Option<DockerControls> {
@@ -388,7 +386,6 @@ impl AppData {
self.logs_parsed = true; 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() { for (index, output) in all_logs.into_iter().enumerate() {
self.update_log_by_index(output, index); self.update_log_by_index(output, index);
+1 -2
View File
@@ -231,7 +231,6 @@ pub fn draw_logs<B: Backend>(
.block(block) .block(block)
.alignment(Alignment::Center); .alignment(Alignment::Center);
f.render_widget(paragraph, area) f.render_widget(paragraph, area)
} else if let Some(index) = index { } else if let Some(index) = index {
let items = app_data.lock().containers.items[index] let items = app_data.lock().containers.items[index]
.logs .logs
@@ -350,7 +349,7 @@ fn make_chart<T: Stats + Display>(
), ),
]) ])
// add 0.01, for cases when the value is 0 // add 0.01, for cases when the value is 0
.bounds([0.0, max.get_value() +0.01]), .bounds([0.0, max.get_value() + 0.01]),
) )
} }