@@ -93,7 +93,6 @@ struct MkOptions<'a> {
93
93
path : & ' a Path ,
94
94
name : & ' a str ,
95
95
source_files : Vec < SourceFileInformation > ,
96
- bin : bool ,
97
96
edition : Option < & ' a str > ,
98
97
registry : Option < & ' a str > ,
99
98
}
@@ -448,7 +447,6 @@ pub fn new(opts: &NewOptions, config: &Config) -> CargoResult<()> {
448
447
path,
449
448
name,
450
449
source_files : vec ! [ plan_new_source_file( opts. kind. is_bin( ) , name. to_string( ) ) ] ,
451
- bin : is_bin,
452
450
edition : opts. edition . as_deref ( ) ,
453
451
registry : opts. registry . as_deref ( ) ,
454
452
} ;
@@ -553,7 +551,6 @@ pub fn init(opts: &NewOptions, config: &Config) -> CargoResult<NewProjectKind> {
553
551
version_control,
554
552
path,
555
553
name,
556
- bin : has_bin,
557
554
source_files : src_paths_types,
558
555
edition : opts. edition . as_deref ( ) ,
559
556
registry : opts. registry . as_deref ( ) ,
@@ -745,9 +742,6 @@ fn mk(config: &Config, opts: &MkOptions<'_>) -> CargoResult<()> {
745
742
// for all mutually-incompatible VCS in terms of syntax are in sync.
746
743
let mut ignore = IgnoreList :: new ( ) ;
747
744
ignore. push ( "/target" , "^target$" , "target" ) ;
748
- if !opts. bin {
749
- ignore. push ( "/Cargo.lock" , "^Cargo.lock$" , "Cargo.lock" ) ;
750
- }
751
745
752
746
let vcs = opts. version_control . unwrap_or_else ( || {
753
747
let in_existing_vcs = existing_vcs_repo ( path. parent ( ) . unwrap_or ( path) , config. cwd ( ) ) ;
0 commit comments