From dded1a528038c2257497800668a1b729847a0147 Mon Sep 17 00:00:00 2001 From: Igor Matuszewski Date: Wed, 3 Apr 2024 13:58:58 +0200 Subject: [PATCH] refactor: Make ToJS pub(crate) --- crates/codegen/parser/runtime/src/napi_interface/cst.rs | 2 +- .../cargo/slang_solidity/src/generated/napi_interface/cst.rs | 2 +- .../cargo/slang_testlang/src/generated/napi_interface/cst.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/codegen/parser/runtime/src/napi_interface/cst.rs b/crates/codegen/parser/runtime/src/napi_interface/cst.rs index 94bf2714c1..ad19bfa629 100644 --- a/crates/codegen/parser/runtime/src/napi_interface/cst.rs +++ b/crates/codegen/parser/runtime/src/napi_interface/cst.rs @@ -118,7 +118,7 @@ impl TokenNode { } } -pub trait ToJS { +pub(crate) trait ToJS { fn to_js(&self, env: Env) -> JsObject; } diff --git a/crates/solidity/outputs/cargo/slang_solidity/src/generated/napi_interface/cst.rs b/crates/solidity/outputs/cargo/slang_solidity/src/generated/napi_interface/cst.rs index 9c958f79a7..a942ae4a0a 100644 --- a/crates/solidity/outputs/cargo/slang_solidity/src/generated/napi_interface/cst.rs +++ b/crates/solidity/outputs/cargo/slang_solidity/src/generated/napi_interface/cst.rs @@ -120,7 +120,7 @@ impl TokenNode { } } -pub trait ToJS { +pub(crate) trait ToJS { fn to_js(&self, env: Env) -> JsObject; } diff --git a/crates/testlang/outputs/cargo/slang_testlang/src/generated/napi_interface/cst.rs b/crates/testlang/outputs/cargo/slang_testlang/src/generated/napi_interface/cst.rs index 9c958f79a7..a942ae4a0a 100644 --- a/crates/testlang/outputs/cargo/slang_testlang/src/generated/napi_interface/cst.rs +++ b/crates/testlang/outputs/cargo/slang_testlang/src/generated/napi_interface/cst.rs @@ -120,7 +120,7 @@ impl TokenNode { } } -pub trait ToJS { +pub(crate) trait ToJS { fn to_js(&self, env: Env) -> JsObject; }