Skip to content

Commit d99db18

Browse files
committed
test: Resolve deprecations
1 parent dc6adc8 commit d99db18

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/cargo-set-version/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ fn add_registry_packages(alt: bool) {
102102
.publish();
103103
}
104104

105-
pub fn cargo_exe() -> std::path::PathBuf {
106-
snapbox::cmd::cargo_bin("cargo-set-version")
105+
pub fn cargo_exe() -> &'static std::path::Path {
106+
snapbox::cmd::cargo_bin!("cargo-set-version")
107107
}
108108

109109
/// Test the cargo command

tests/cargo-upgrade/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ fn add_op_registry_packages(alt: bool) {
219219
.publish();
220220
}
221221

222-
pub fn cargo_exe() -> std::path::PathBuf {
223-
snapbox::cmd::cargo_bin("cargo-upgrade")
222+
pub fn cargo_exe() -> &'static std::path::Path {
223+
snapbox::cmd::cargo_bin!("cargo-upgrade")
224224
}
225225

226226
/// Test the cargo command

0 commit comments

Comments
 (0)