Skip to content

Commit

Permalink
Merge branch 'rc/v0.55' into refactor-ManagedResultArgLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-marinica committed Dec 12, 2024
2 parents 806aa3f + 8df600b commit 3f2771d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions framework/meta/src/cmd/code_report/compare.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
pub(crate) fn size_status_after_comparing(size: usize, compared_size: usize) -> String {
match size.cmp(&compared_size) {
std::cmp::Ordering::Greater => {
format!("{} :arrow_right: {} :red_circle:", compared_size, size)
format!(
"{} :arrow_right: {} :red_circle: (+{})",
compared_size,
size,
size - compared_size
)
},
std::cmp::Ordering::Less => {
format!("{} :arrow_right: {} :green_circle:", compared_size, size)
format!(
"{} :arrow_right: {} :green_circle: (-{})",
compared_size,
size,
compared_size - size
)
},
std::cmp::Ordering::Equal => {
format!("{}", size)
Expand Down

0 comments on commit 3f2771d

Please sign in to comment.