File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -74,9 +74,9 @@ pub fn execute(args: &ArgMatches) -> Result<()> {
7474 if let Some ( author) = get_author_name ( ) {
7575 debug ! ( "Obtained user name from gitconfig: {:?}" , author) ;
7676 config. book . authors . push ( author) ;
77- builder. with_config ( config) ;
7877 }
7978
79+ builder. with_config ( config) ;
8080 builder. build ( ) ?;
8181 println ! ( "\n All done, no errors..." ) ;
8282
Original file line number Diff line number Diff line change @@ -43,5 +43,5 @@ fn no_git_config_with_title() {
4343 . stdout ( predicates:: str:: contains ( "\n All done, no errors...\n " ) ) ;
4444
4545 let config = Config :: from_disk ( temp. path ( ) . join ( "book.toml" ) ) . unwrap ( ) ;
46- assert_eq ! ( config. book. title, None ) ;
46+ assert_eq ! ( config. book. title. as_deref ( ) , Some ( "Example title" ) ) ;
4747}
You can’t perform that action at this time.
0 commit comments