Colored diff output for unit tests

Greetings rustaceans,

In one of my unit tests I have the following assert:

assert_eq(big_vector_of_structs_A, big_vector_of_structs_B);

When the assert fails, I get the "left" and "right" side printed out. Is there a way to get a colored diff to highlight what part is failing?

Thanks for any help!


You can use the pretty_assertions crate.

@bjorn3, That's great! Thanks for the quick reply!