From 7edd2826aac2ea14a808c00563968a1b1c850b28 Mon Sep 17 00:00:00 2001 From: nabijaczleweli Date: Sat, 21 Oct 2017 17:00:24 +0200 Subject: [PATCH] Fix formatting --- src/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 0bb95605c0..2665ce320a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -70,8 +70,7 @@ fn actual_main() -> Result<(), i32> { let mut out = TabWriter::new(stdout()); writeln!(out, "Package\tInstalled\tLatest\tNeeds update").unwrap(); for package in packages.iter() - .sorted_by(|lhs, rhs| (!lhs.needs_update(), &lhs.name).cmp(&(!rhs.needs_update(), &rhs.name))) - { + .sorted_by(|lhs, rhs| (!lhs.needs_update(), &lhs.name).cmp(&(!rhs.needs_update(), &rhs.name))) { write!(out, "{}\t", package.name).unwrap(); if let Some(ref v) = package.version { write!(out, "v{}", v).unwrap(); @@ -165,8 +164,7 @@ fn actual_main() -> Result<(), i32> { let mut out = TabWriter::new(stdout()); writeln!(out, "Package\tInstalled\tLatest\tNeeds update").unwrap(); for package in packages.iter() - .sorted_by(|lhs, rhs| (!lhs.needs_update(), &lhs.name).cmp(&(!rhs.needs_update(), &rhs.name))) - { + .sorted_by(|lhs, rhs| (!lhs.needs_update(), &lhs.name).cmp(&(!rhs.needs_update(), &rhs.name))) { writeln!(out, "{}\t{}\t{}\t{}", package.name,