We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e077e10 commit a7f6156Copy full SHA for a7f6156
src/catalyst-toolbox/catalyst-toolbox/src/ideascale/models/de/clean_string.rs
@@ -73,12 +73,13 @@ pub fn clean_str(s: &str) -> String {
73
#[cfg(any(test, feature = "test-api"))]
74
mod tests {
75
use proptest::arbitrary::any;
76
+ #[allow(unused_imports)]
77
+ use serde_json::json;
78
use proptest::prelude::*;
79
use proptest::{
80
arbitrary::{Arbitrary, StrategyFor},
81
strategy::Map,
82
};
- use serde_json::json;
83
use test_strategy::proptest;
84
85
use super::*;
@@ -105,6 +106,7 @@ mod tests {
105
106
}
107
108
#[proptest]
109
+ #[allow(dead_code)]
110
fn any_string_deserializes_to_clean_string(s: String) {
111
let json = json!(s);
112
let _: CleanString = serde_json::from_value(json).unwrap();
0 commit comments