From ae18c6064aa44ac81963fcb623cc17cf3e94f78c Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Thu, 30 Nov 2017 15:04:19 +0100 Subject: [PATCH] Run rustfmt --- src/filemap.rs | 6 +++++- src/items.rs | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/filemap.rs b/src/filemap.rs index 0532646b9f49..8bed486e7b94 100644 --- a/src/filemap.rs +++ b/src/filemap.rs @@ -30,7 +30,11 @@ pub fn append_newline(s: &mut StringBuffer) { s.push_str("\n"); } -pub fn write_all_files(file_map: &[FileRecord], out: &mut T, config: &Config) -> Result<(), io::Error> +pub fn write_all_files( + file_map: &[FileRecord], + out: &mut T, + config: &Config, +) -> Result<(), io::Error> where T: Write, { diff --git a/src/items.rs b/src/items.rs index fcdc3b2c858e..65dce5ac9b4d 100644 --- a/src/items.rs +++ b/src/items.rs @@ -2462,7 +2462,6 @@ fn rewrite_trait_bounds( bounds: &[ast::TyParamBound], shape: Shape, ) -> Option { - if bounds.is_empty() { return Some(String::new()); }