aboutsummaryrefslogtreecommitdiff
path: root/src/display.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2016-01-20 23:30:45 -0500
committerCorey Farwell <coreyf@rwell.org>2016-01-21 08:38:09 -0500
commit7be39d725d6d251366d1cbd2566651b011cdb5a3 (patch)
tree5233aac487e0871823267670b58310a3ab24e8bf /src/display.rs
parent6fe6a15fe526b08010ff3e6acaf52d3665d34d6b (diff)
downloadmilf-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.rs5
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;
}
}
_ => {}