aboutsummaryrefslogtreecommitdiff
path: root/src/rust_str.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rust_str.rs')
-rw-r--r--src/rust_str.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/rust_str.rs b/src/rust_str.rs
index fe114735..b944ede9 100644
--- a/src/rust_str.rs
+++ b/src/rust_str.rs
@@ -25,10 +25,4 @@ impl RustStr {
}
}
-#[export_name = "cxxbridge03$str$valid"]
-unsafe extern "C" fn str_valid(ptr: *const u8, len: usize) -> bool {
- let slice = slice::from_raw_parts(ptr, len);
- str::from_utf8(slice).is_ok()
-}
-
const_assert_eq!(mem::size_of::<Option<RustStr>>(), mem::size_of::<RustStr>());