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/src/tests/utils.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crates/proc_macro_srv/src/tests') 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