Skip to content

Commit ee52ab0

Browse files
Swap binary/module columns to be accurate
1 parent be79454 commit ee52ab0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rubicon/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,8 @@ macro_rules! compatibility_check {
534534
let imported_value = imported.iter().find(|&(k, _)| k == key).map(|(_, v)| v);
535535

536536
let key_column = colored(AnsiColor::GREY, key).to_string();
537-
let binary_column = format_column(imported_value.as_deref().copied(), exported_value.as_deref().copied(), AnsiColor::RED);
538-
let module_column = format_column(exported_value.as_deref().copied(), imported_value.as_deref().copied(), AnsiColor::GREEN);
537+
let binary_column = format_column(exported_value.as_deref().copied(), imported_value.as_deref().copied(), AnsiColor::GREEN);
538+
let module_column = format_column(imported_value.as_deref().copied(), exported_value.as_deref().copied(), AnsiColor::RED);
539539

540540
fn format_column(primary: Option<&str>, secondary: Option<&str>, highlight_color: AnsiColor) -> String {
541541
match primary {
@@ -546,7 +546,7 @@ macro_rules! compatibility_check {
546546
colored(highlight_color, value).to_string()
547547
}
548548
},
549-
None => colored(AnsiColor::GREY, "∅").to_string(),
549+
None => colored(AnsiColor::RED, "∅").to_string(),
550550
}
551551
}
552552

0 commit comments

Comments
 (0)