1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Difftastic is a syntactic diff tool.
//!
//! For usage instructions and advice on contributing, see [the
//! manual](http://difftastic.wilfred.me.uk/).
//!
// This tends to trigger on larger tuples of simple types, and naming
// them would probably be worse for readability.
// == "" is often clearer when dealing with strings.
// It's common to have pairs foo_lhs and foo_rhs, leading to double
// the number of arguments and triggering this lint.
// Has false positives on else if chains that sometimes have the same
// body for readability.
// Purely stylistic, and ignores whether there are explanatory
// comments in the if/else.
// Good practice in general, but a necessary evil for Syntax. Its Hash
// implementation does not consider the mutable fields, so it is still
// correct.
extern crate log;
extern crate pretty_env_logger;
use MiMalloc;
/// The global allocator used by difftastic.
///
/// Diffing allocates a large amount of memory, and `MiMalloc` performs
/// better.
static GLOBAL: MiMalloc = MiMalloc;
/// The entrypoint.