* chore: cargo +nightly clippy --fix -Z unstable-options (cherry picked from commit6514096a67
) # Conflicts: # core/src/banking_stage.rs # core/src/cost_model.rs # core/src/cost_tracker.rs # core/src/execute_cost_table.rs # core/src/replay_stage.rs # core/src/tvu.rs # ledger-tool/src/main.rs # programs/bpf_loader/build.rs # rbpf-cli/src/main.rs # sdk/cargo-build-bpf/src/main.rs # sdk/cargo-test-bpf/src/main.rs # sdk/src/secp256k1_instruction.rs * chore: cargo fmt (cherry picked from commit789f33e8db
) * Updates BPF program assert_instruction_count tests. (cherry picked from commitc1e03f3410
) # Conflicts: # programs/bpf/tests/programs.rs * Resolve conflicts Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net> Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
@@ -57,7 +57,7 @@ fn main() {
|
||||
let name = v["name"].as_str().unwrap().trim_matches('\"').to_string();
|
||||
|
||||
if last_commit.is_none() {
|
||||
last_commit = get_last_metrics(&"commit".to_string(), &db, &name, &branch).ok();
|
||||
last_commit = get_last_metrics(&"commit".to_string(), &db, &name, branch).ok();
|
||||
}
|
||||
|
||||
let median: i64 = v["median"].to_string().parse().unwrap();
|
||||
@@ -76,11 +76,10 @@ fn main() {
|
||||
*/
|
||||
|
||||
}
|
||||
let last_median = get_last_metrics(&"median".to_string(), &db, &name, &branch)
|
||||
let last_median =
|
||||
get_last_metrics(&"median".to_string(), &db, &name, branch).unwrap_or_default();
|
||||
let last_deviation = get_last_metrics(&"deviation".to_string(), &db, &name, branch)
|
||||
.unwrap_or_default();
|
||||
let last_deviation =
|
||||
get_last_metrics(&"deviation".to_string(), &db, &name, &branch)
|
||||
.unwrap_or_default();
|
||||
|
||||
results.insert(name, (median, deviation, last_median, last_deviation));
|
||||
}
|
||||
|
Reference in New Issue
Block a user