@@ -15,7 +15,6 @@ use std::{
15
15
cmp,
16
16
collections:: HashMap ,
17
17
convert:: From ,
18
- env,
19
18
ffi:: OsStr ,
20
19
fmt,
21
20
fmt:: Write ,
@@ -287,7 +286,7 @@ fn main() -> Result<()> {
287
286
288
287
let matches = App :: new ( crate_name ! ( ) )
289
288
. version ( crate_version ! ( ) )
290
- . author ( crate_authors ! ( " \n " ) )
289
+ . author ( "o2sh <[email protected] >" )
291
290
. about ( crate_description ! ( ) )
292
291
. arg ( Arg :: with_name ( "directory" )
293
292
. short ( "d" )
@@ -494,7 +493,6 @@ fn get_configuration(dir: &str) -> Result<Configuration> {
494
493
495
494
// Return first n most active commiters as authors within this project.
496
495
fn get_authors ( dir : & str , n : usize ) -> Vec < String > {
497
- use std:: collections:: HashMap ;
498
496
let output = Command :: new ( "git" )
499
497
. arg ( "-C" )
500
498
. arg ( dir)
@@ -672,10 +670,6 @@ enum Error {
672
670
ReadDirectory ,
673
671
/// Not in a Git Repo
674
672
NotGitRepo ,
675
- /// Too few arguments
676
- TooFewArgs ,
677
- /// Too many arguments
678
- TooManyArgs ,
679
673
}
680
674
681
675
impl fmt:: Debug for Error {
@@ -686,8 +680,6 @@ impl fmt::Debug for Error {
686
680
Error :: NoGitData => "Could not retrieve git configuration data" ,
687
681
Error :: ReadDirectory => "Could not read directory" ,
688
682
Error :: NotGitRepo => "This is not a Git Repo" ,
689
- Error :: TooFewArgs => "Too few arguments. Expected program name and a single argument." ,
690
- Error :: TooManyArgs => "Too many arguments. Expected a single argument." ,
691
683
} ;
692
684
write ! ( f, "{}" , content)
693
685
}
0 commit comments