Skip to content

Commit a466b06

Browse files
committed
fix trailing white space in LOC
1 parent 50f2b31 commit a466b06

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: src/onefetch/info.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub struct Info {
2424
commits: String,
2525
pending: String,
2626
repo_size: String,
27-
number_of_lines: usize,
27+
lines_of_code: usize,
2828
number_of_tags: usize,
2929
number_of_branches: usize,
3030
license: String,
@@ -157,9 +157,9 @@ impl std::fmt::Display for Info {
157157
if !self.config.disabled_fields.lines_of_code {
158158
writeln!(
159159
f,
160-
"{} {}",
160+
"{}{}",
161161
&self.get_formatted_subtitle_label("Lines of code"),
162-
&self.number_of_lines.to_string().color(self.color_set.info),
162+
&self.lines_of_code.to_string().color(self.color_set.info),
163163
)?;
164164
}
165165

@@ -206,7 +206,7 @@ impl Info {
206206
.chain_err(|| "Could not find a valid git repo on the current path")?;
207207
let workdir = repo.workdir().chain_err(|| "Unable to run onefetch on bare git repo")?;
208208
let workdir_str = workdir.to_str().unwrap();
209-
let (languages_stats, number_of_lines) =
209+
let (languages_stats, lines_of_code) =
210210
Language::get_language_statistics(workdir_str, &config.excluded)?;
211211
let git_history = Info::get_git_history(workdir_str, config.no_merges);
212212
let (number_of_tags, number_of_branches) = Info::get_number_of_tags_branches(workdir_str);
@@ -245,7 +245,7 @@ impl Info {
245245
commits: number_of_commits,
246246
pending: pending?,
247247
repo_size: repo_size?,
248-
number_of_lines,
248+
lines_of_code,
249249
number_of_tags,
250250
number_of_branches,
251251
license: project_license?,

0 commit comments

Comments
 (0)