Skip to content

Commit e077e10

Browse files
committed
fix build
1 parent 23a55c9 commit e077e10

File tree

1 file changed

+4
-7
lines changed
  • src/catalyst-toolbox/catalyst-toolbox/src/ideascale/models/de

1 file changed

+4
-7
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ mod tests {
7676
use proptest::prelude::*;
7777
use proptest::{
7878
arbitrary::{Arbitrary, StrategyFor},
79-
prelude::*,
8079
strategy::Map,
8180
};
8281
use serde_json::json;
@@ -105,11 +104,9 @@ mod tests {
105104
assert_eq!(parse("h*e-l/lo"), CleanString::from("hello"));
106105
}
107106

108-
proptest! {
109-
#[test]
110-
fn any_string_deserializes_to_clean_string(s in any::<String>()) {
111-
let json = json!(s);
112-
let _: CleanString = serde_json::from_value(json).unwrap();
113-
}
107+
#[proptest]
108+
fn any_string_deserializes_to_clean_string(s: String) {
109+
let json = json!(s);
110+
let _: CleanString = serde_json::from_value(json).unwrap();
114111
}
115112
}

0 commit comments

Comments
 (0)