Formatted the project using rustfmt
@@ -28,7 +28,11 @@ impl fmt::Display for Info {
);
if self.authors.len() > 0 {
- let title = if self.authors.len() > 1 { "Authors: " } else { "Author: " };
+ let title = if self.authors.len() > 1 {
+ "Authors: "
+ } else {
+ "Author: "
+ };
let first = self.authors.first().unwrap();
s.push_str(&(title.color(color).bold().to_string() + &format!("{}\n", first)));
@@ -198,7 +202,8 @@ fn get_authors(n: usize) -> Vec<String> {
// get only authors without their commit count
// and string "'" prefix and suffix
- let authors: Vec<String> = authors.into_iter()
+ let authors: Vec<String> = authors
+ .into_iter()
.map(|(author, _)| author.trim_matches('\'').to_string())
.collect();
