diff --git a/src/lib.rs b/src/lib.rs index b59b2a39..bfb9fb9f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -17,13 +17,13 @@ mod isolate; mod local; mod locker; mod number; +mod string; mod string_buffer; mod string_view; mod support; pub mod array_buffer; pub mod platform; -pub mod string; // This module is intentionally named "V8" rather than "v8" to match the // C++ namespace "v8::V8". #[allow(non_snake_case)] @@ -34,6 +34,7 @@ pub use isolate::Isolate; pub use local::Local; pub use locker::Locker; pub use number::{Integer, Number}; +pub use string::NewStringType; pub use string::String; pub use string_buffer::StringBuffer; pub use string_view::StringView; diff --git a/tests/test_api.rs b/tests/test_api.rs index a6345f1d..354a2c26 100644 --- a/tests/test_api.rs +++ b/tests/test_api.rs @@ -88,8 +88,7 @@ fn test_string() { v8::HandleScope::enter(&mut locker, |scope| { let reference = "Hello 🦕 world!"; let local = - v8::String::new(scope, reference, v8::string::NewStringType::Normal) - .unwrap(); + v8::String::new(scope, reference, v8::NewStringType::Normal).unwrap(); assert_eq!(reference, local.to_rust_string_lossy(scope)); }); }