diff options
author | Corey Farwell <coreyf@rwell.org> | 2016-01-20 23:30:45 -0500 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2016-01-21 08:38:09 -0500 |
commit | 7be39d725d6d251366d1cbd2566651b011cdb5a3 (patch) | |
tree | 5233aac487e0871823267670b58310a3ab24e8bf /src/display.rs | |
parent | 6fe6a15fe526b08010ff3e6acaf52d3665d34d6b (diff) | |
download | milf-rs-7be39d725d6d251366d1cbd2566651b011cdb5a3.tar.gz milf-rs-7be39d725d6d251366d1cbd2566651b011cdb5a3.zip |
Address issues found by rust-clippy
Diffstat (limited to 'src/display.rs')
-rw-r--r-- | src/display.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/display.rs b/src/display.rs index 0c561e8..6891530 100644 --- a/src/display.rs +++ b/src/display.rs @@ -61,9 +61,8 @@ impl<'a, 'b> Printer<'a, 'b> { match *v { Table(..) => continue, Array(ref a) => { - match a.first() { - Some(&Table(..)) => continue, - _ => {} + if let Some(&Table(..)) = a.first() { + continue; } } _ => {} |