From 85d985d3f19fec2bed9ea821aee7709825f7d489 Mon Sep 17 00:00:00 2001 From: Tao Zhu Date: Thu, 21 Sep 2023 19:55:07 +0000 Subject: [PATCH] fmt --- programs/bpf_loader/src/lib.rs | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/programs/bpf_loader/src/lib.rs b/programs/bpf_loader/src/lib.rs index d4e26768d9654f..97a6d0a8f246f6 100644 --- a/programs/bpf_loader/src/lib.rs +++ b/programs/bpf_loader/src/lib.rs @@ -4042,10 +4042,7 @@ mod tests { assert_eq!(0, calculate_heap_cost(33 * 1024, heap_cost, false)); // assert exact 64K heap should cost 1 * heap_cost - assert_eq!( - heap_cost, - calculate_heap_cost(64 * 1024, heap_cost, false) - ); + assert_eq!(heap_cost, calculate_heap_cost(64 * 1024, heap_cost, false)); } // when `enable_heap_size_round_up` is enabled: @@ -4057,16 +4054,10 @@ mod tests { assert_eq!(0, calculate_heap_cost(32 * 1024, heap_cost, true)); // assert slightly more than 32K heap should cost 1 * heap_cost - assert_eq!( - heap_cost, - calculate_heap_cost(33 * 1024, heap_cost, true) - ); + assert_eq!(heap_cost, calculate_heap_cost(33 * 1024, heap_cost, true)); // assert exact 64K heap should cost 1 * heap_cost - assert_eq!( - heap_cost, - calculate_heap_cost(64 * 1024, heap_cost, true) - ); + assert_eq!(heap_cost, calculate_heap_cost(64 * 1024, heap_cost, true)); } }