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 b905053 commit 99208c8Copy full SHA for 99208c8
crates/samples/components/json_validator/src/lib.rs
@@ -315,7 +315,7 @@ fn sanitized_value() {
315
)
316
);
317
let sanitized = std::slice::from_raw_parts(sanitized_alloc, sanitized_len);
318
- let sanitized = String::from_utf8_lossy(sanitized);
+ let sanitized = String::from_utf8_lossy(sanitized).into_owned();
319
CoTaskMemFree(Some(sanitized_alloc as _));
320
assert_eq!(sanitized, r#"{"age":21,"name":"Kenny"}"#);
321
0 commit comments