File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,9 +43,9 @@ generic-simd = []
4343annotate-snippets = { version = " 0.11" }
4444anyhow = " 1.0"
4545bytecount = " 0.6.9"
46- cargo_metadata = " 0.18 "
46+ cargo_metadata = " 0.23 "
4747clap = { version = " 4.4.2" , features = [" derive" ] }
48- clap-cargo = " 0.12.0 "
48+ clap-cargo = " 0.18.3 "
4949diff = " 0.1"
5050dirs = " 6.0"
5151getopts = " 0.2"
Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ impl Target {
281281
282282 Target {
283283 path : canonicalized,
284- kind : target. kind [ 0 ] . clone ( ) ,
284+ kind : target. kind [ 0 ] . to_string ( ) ,
285285 edition : target. edition ,
286286 }
287287 }
@@ -444,10 +444,11 @@ fn get_targets_with_hitlist(
444444 targets : & mut BTreeSet < Target > ,
445445) -> Result < ( ) , io:: Error > {
446446 let metadata = get_cargo_metadata ( manifest_path) ?;
447- let mut workspace_hitlist: BTreeSet < & String > = BTreeSet :: from_iter ( hitlist) ;
447+ let mut workspace_hitlist: BTreeSet < & str > =
448+ BTreeSet :: from_iter ( hitlist. into_iter ( ) . map ( |s| s. as_str ( ) ) ) ;
448449
449450 for package in metadata. packages {
450- if workspace_hitlist. remove ( & package. name ) {
451+ if workspace_hitlist. remove ( package. name . as_ref ( ) ) {
451452 for target in package. targets {
452453 targets. insert ( Target :: from_target ( & target) ) ;
453454 }
You can’t perform that action at this time.
0 commit comments