@@ -24,7 +24,7 @@ pub struct Info {
24
24
commits : String ,
25
25
pending : String ,
26
26
repo_size : String ,
27
- number_of_lines : usize ,
27
+ lines_of_code : usize ,
28
28
number_of_tags : usize ,
29
29
number_of_branches : usize ,
30
30
license : String ,
@@ -157,9 +157,9 @@ impl std::fmt::Display for Info {
157
157
if !self . config . disabled_fields . lines_of_code {
158
158
writeln ! (
159
159
f,
160
- "{} {}" ,
160
+ "{}{}" ,
161
161
& 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) ,
163
163
) ?;
164
164
}
165
165
@@ -206,7 +206,7 @@ impl Info {
206
206
. chain_err ( || "Could not find a valid git repo on the current path" ) ?;
207
207
let workdir = repo. workdir ( ) . chain_err ( || "Unable to run onefetch on bare git repo" ) ?;
208
208
let workdir_str = workdir. to_str ( ) . unwrap ( ) ;
209
- let ( languages_stats, number_of_lines ) =
209
+ let ( languages_stats, lines_of_code ) =
210
210
Language :: get_language_statistics ( workdir_str, & config. excluded ) ?;
211
211
let git_history = Info :: get_git_history ( workdir_str, config. no_merges ) ;
212
212
let ( number_of_tags, number_of_branches) = Info :: get_number_of_tags_branches ( workdir_str) ;
@@ -245,7 +245,7 @@ impl Info {
245
245
commits : number_of_commits,
246
246
pending : pending?,
247
247
repo_size : repo_size?,
248
- number_of_lines ,
248
+ lines_of_code ,
249
249
number_of_tags,
250
250
number_of_branches,
251
251
license : project_license?,
0 commit comments