File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -188,25 +188,14 @@ async fn vendor_source(source: &str, filter: bool) -> io::Result<PathBuf> {
188188 outdir : Some ( raw_outdir. clone ( ) ) ,
189189 subcommands : None ,
190190 } ;
191- if * "https://github.com/elliot40404/bonk/archive/refs/tags/v0.4.0.tar.gz" != * source {
192- assert ! ( raw_opts( raw_args, false ) . is_ok( ) ) ;
193- } else {
194- assert ! ( raw_opts( raw_args, false ) . is_err( ) ) ;
195- }
191+ assert ! ( raw_opts( raw_args, false ) . is_ok( ) ) ;
196192 let vendor_path = raw_outdir. join ( "vendor" ) ;
197193 let cargo_config_path = raw_outdir. join ( ".cargo" ) . join ( "config.toml" ) ;
198194 let cargo_lock_path = raw_outdir. join ( "Cargo.lock" ) ;
199- if * "https://github.com/elliot40404/bonk/archive/refs/tags/v0.4.0.tar.gz" != * source {
200- assert ! ( vendor_tarball_path. is_file( ) ) ;
201- assert ! ( vendor_path. is_dir( ) ) ;
202- assert ! ( cargo_config_path. is_file( ) ) ;
203- assert ! ( cargo_lock_path. is_file( ) ) ;
204- } else {
205- assert ! ( !vendor_tarball_path. is_file( ) ) ;
206- assert ! ( !vendor_path. is_dir( ) ) ;
207- assert ! ( !cargo_config_path. is_file( ) ) ;
208- assert ! ( !cargo_lock_path. is_file( ) ) ;
209- }
195+ assert ! ( vendor_tarball_path. is_file( ) ) ;
196+ assert ! ( vendor_path. is_dir( ) ) ;
197+ assert ! ( cargo_config_path. is_file( ) ) ;
198+ assert ! ( cargo_lock_path. is_file( ) ) ;
210199 Ok ( outfile)
211200}
212201
You can’t perform that action at this time.
0 commit comments