Skip to content

Commit ea53fed

Browse files
committed
fix: remove paste dependency (#159)
1 parent 3ac5019 commit ea53fed

File tree

3 files changed

+10
-20
lines changed

3 files changed

+10
-20
lines changed

Cargo.lock

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pumpkin-macros/src/lib.rs

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -123,18 +123,16 @@ pub fn cumulative_synchronised(item: TokenStream) -> TokenStream {
123123
);
124124

125125
let stream: TokenStream = quote! {
126-
paste::item! {
127-
#[test]
128-
fn #test_name() {
129-
check_statistic_equality(
130-
"cumulative",
131-
"mzn_constraints",
132-
vec!["--cumulative-propagation-method", &stringcase::kebab_case(stringify!(#first_name)),"--cumulative-explanation-type", #explanation_type, #options],
133-
vec!["--cumulative-propagation-method", &stringcase::kebab_case(stringify!(#second_name)),"--cumulative-explanation-type", #explanation_type, #options],
134-
&format!("equality_{}_{}_{}", #first_name, #explanation_type, #option_string),
135-
&format!("equality_{}_{}_{}", #second_name, #explanation_type, #option_string),
136-
);
137-
}
126+
#[test]
127+
fn #test_name() {
128+
check_statistic_equality(
129+
"cumulative",
130+
"mzn_constraints",
131+
vec!["--cumulative-propagation-method", &stringcase::kebab_case(stringify!(#first_name)),"--cumulative-explanation-type", #explanation_type, #options],
132+
vec!["--cumulative-propagation-method", &stringcase::kebab_case(stringify!(#second_name)),"--cumulative-explanation-type", #explanation_type, #options],
133+
&format!("equality_{}_{}_{}", #first_name, #explanation_type, #option_string),
134+
&format!("equality_{}_{}_{}", #second_name, #explanation_type, #option_string),
135+
);
138136
}
139137
}
140138
.into();

pumpkin-solver/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ enum-map = "2.7.3"
3131
[dev-dependencies]
3232
clap = { version = "4.5.17", features = ["derive"] }
3333
env_logger = "0.10.0"
34-
paste = "1.0.15"
3534
regex = "1.11.0"
3635
stringcase = "0.3.0"
3736
wait-timeout = "0.2.0"

0 commit comments

Comments
 (0)