Skip to content

Commit 982a65e

Browse files
committedOct 6, 2019
rollback last change
1 parent a1aff05 commit 982a65e

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed
 

Diff for: ‎src/main.rs

+5-10
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ impl fmt::Display for Info {
9797

9898
if !self.authors.is_empty() {
9999
let title = if self.authors.len() > 1 {
100-
"Contributors: "
100+
"Authors: "
101101
} else {
102-
"Contributor: "
102+
"Author: "
103103
};
104104

105105
writeln!(buffer, "{}{}% {} {}", title.color(color).bold(), self.authors[0].2, self.authors[0].0, self.authors[0].1)?;
@@ -134,7 +134,7 @@ impl fmt::Display for Info {
134134
writeln!(
135135
buffer,
136136
"{}{}",
137-
"Repository size: ".color(color).bold(),
137+
"Size: ".color(color).bold(),
138138
self.repo_size
139139
)?;
140140
writeln!(
@@ -529,20 +529,15 @@ fn get_packed_size(dir: &str) -> Result<String> {
529529
let lines = output.to_string();
530530
let files_list = lines.split("\n");
531531
let mut files_count:u128 = 0;
532-
for file in files_list {
532+
for _file in files_list {
533533
files_count+=1;
534534
}
535535
files_count-=1; // As splitting giving one line extra(blank).
536536
let res = repo_size.to_owned() + &(" (") + &(files_count.to_string()) + &(" files)");
537537
Ok(res.into())
538538
}
539539
else{
540-
let mut res:&str;
541-
if repo_size == "??"{
542-
res = "??";
543-
}else{
544-
res = repo_size;
545-
}
540+
let res =repo_size;
546541
Ok(res.into())
547542
}
548543
}

0 commit comments

Comments
 (0)
Please sign in to comment.