Skip to content

Commit af2473d

Browse files
committed
feat(snapbox): Provide default for cargo_bin!
1 parent a676a95 commit af2473d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/snapbox/src/macros.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ macro_rules! fn_path {
128128
#[macro_export]
129129
#[doc(hidden)]
130130
macro_rules! cargo_bin {
131+
() => {
132+
$crate::cmd::cargo_bin!(env!("CARGO_PKG_NAME"))
133+
};
131134
($bin_target_name:expr) => {
132135
::std::path::Path::new(env!(concat!("CARGO_BIN_EXE_", $bin_target_name)))
133136
};

0 commit comments

Comments
 (0)