@@ -93,7 +93,6 @@ struct MkOptions<'a> {
9393 path : & ' a Path ,
9494 name : & ' a str ,
9595 source_files : Vec < SourceFileInformation > ,
96- bin : bool ,
9796 edition : Option < & ' a str > ,
9897 registry : Option < & ' a str > ,
9998}
@@ -448,7 +447,6 @@ pub fn new(opts: &NewOptions, config: &Config) -> CargoResult<()> {
448447 path,
449448 name,
450449 source_files : vec ! [ plan_new_source_file( opts. kind. is_bin( ) , name. to_string( ) ) ] ,
451- bin : is_bin,
452450 edition : opts. edition . as_deref ( ) ,
453451 registry : opts. registry . as_deref ( ) ,
454452 } ;
@@ -553,7 +551,6 @@ pub fn init(opts: &NewOptions, config: &Config) -> CargoResult<NewProjectKind> {
553551 version_control,
554552 path,
555553 name,
556- bin : has_bin,
557554 source_files : src_paths_types,
558555 edition : opts. edition . as_deref ( ) ,
559556 registry : opts. registry . as_deref ( ) ,
@@ -745,9 +742,6 @@ fn mk(config: &Config, opts: &MkOptions<'_>) -> CargoResult<()> {
745742 // for all mutually-incompatible VCS in terms of syntax are in sync.
746743 let mut ignore = IgnoreList :: new ( ) ;
747744 ignore. push ( "/target" , "^target$" , "target" ) ;
748- if !opts. bin {
749- ignore. push ( "/Cargo.lock" , "^Cargo.lock$" , "Cargo.lock" ) ;
750- }
751745
752746 let vcs = opts. version_control . unwrap_or_else ( || {
753747 let in_existing_vcs = existing_vcs_repo ( path. parent ( ) . unwrap_or ( path) , config. cwd ( ) ) ;
0 commit comments