From b20708f6ee652310083957c519e35a4a4e73496d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Tue, 2 Mar 2021 14:27:29 +0200 Subject: Bump cargo_metadata --- crates/proc_macro_srv/Cargo.toml | 2 +- crates/proc_macro_srv/src/tests/utils.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'crates/proc_macro_srv') diff --git a/crates/proc_macro_srv/Cargo.toml b/crates/proc_macro_srv/Cargo.toml index 6c8c28980..4c1b3036a 100644 --- a/crates/proc_macro_srv/Cargo.toml +++ b/crates/proc_macro_srv/Cargo.toml @@ -20,7 +20,7 @@ proc_macro_api = { path = "../proc_macro_api", version = "0.0.0" } test_utils = { path = "../test_utils", version = "0.0.0" } [dev-dependencies] -cargo_metadata = "0.12.2" +cargo_metadata = "0.13" # used as proc macro test targets serde_derive = "1.0.106" diff --git a/crates/proc_macro_srv/src/tests/utils.rs b/crates/proc_macro_srv/src/tests/utils.rs index 196abb8fc..22813052d 100644 --- a/crates/proc_macro_srv/src/tests/utils.rs +++ b/crates/proc_macro_srv/src/tests/utils.rs @@ -8,6 +8,7 @@ use test_utils::assert_eq_text; mod fixtures { use cargo_metadata::Message; + use std::path::PathBuf; use std::process::Command; // Use current project metadata to get the proc-macro dylib path @@ -24,7 +25,7 @@ mod fixtures { if artifact.target.kind.contains(&"proc-macro".to_string()) { let repr = format!("{} {}", crate_name, version); if artifact.package_id.repr.starts_with(&repr) { - return artifact.filenames[0].clone(); + return PathBuf::from(&artifact.filenames[0]); } } } -- cgit v1.2.3