Skip to content

Commit 28449ea

Browse files
committed
fix build
1 parent dd0651c commit 28449ea

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/catalyst-toolbox/catalyst-toolbox/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ fraction = "0.12"
6565
tracing.workspace = true
6666
tracing-subscriber.workspace = true
6767
vit-servicing-station-lib = { path = "../../vit-servicing-station/vit-servicing-station-lib", optional = true }
68+
proptest.workspace = true
69+
test-strategy = "0.2"
6870

6971
[dev-dependencies]
7072
rand_chacha = "0.3"

src/catalyst-toolbox/catalyst-toolbox/src/ideascale/models/de/clean_string.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,17 @@ mod tests {
7979
};
8080
use serde_json::json;
8181
use test_strategy::proptest;
82+
use proptest::arbitrary::any;
8283

8384
use super::*;
8485

8586
impl Arbitrary for CleanString {
8687
type Parameters = ();
87-
type Strategy = Map<StrategyFor<String>, fn(String) -> Self>;
88-
8988
fn arbitrary_with((): Self::Parameters) -> Self::Strategy {
9089
any::<String>().prop_map(|s| CleanString(clean_str(&s)))
9190
}
91+
92+
type Strategy = Map<StrategyFor<String>, fn(String) -> Self>;
9293
}
9394

9495
fn parse(s: &str) -> CleanString {

0 commit comments

Comments
 (0)