Auto merge of #52764 - sinkuu:cleanup, r=nikomatsakis

Misc cleanups
This commit is contained in:
bors
2018-07-29 06:32:24 +00:00
20 changed files with 50 additions and 73 deletions

View File

@@ -64,7 +64,6 @@ use std::fmt;
use std::fs::File;
use std::io::prelude::*;
use std::io;
use std::iter::repeat;
use std::path::PathBuf;
use std::process::Termination;
use std::sync::mpsc::{channel, Sender};
@@ -143,7 +142,7 @@ impl TestDesc {
fn padded_name(&self, column_count: usize, align: NamePadding) -> String {
let mut name = String::from(self.name.as_slice());
let fill = column_count.saturating_sub(name.len());
let pad = repeat(" ").take(fill).collect::<String>();
let pad = " ".repeat(fill);
match align {
PadNone => name,
PadOnRight => {