summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2019-05-09 22:44:30 +0200
committerRyan Dahl <ry@tinyclouds.org>2019-05-09 16:44:30 -0400
commit1fc61f3b6a32d30d3667855c4b2e4457f309ac87 (patch)
tree95bae8504a0a8e3f4417713a7b0d02ef1b2df49c
parent07886a03cc913a15fa8e90034e80edeb41186c2c (diff)
core: Privatize ModuleNameMap SymbolicModule deno_buf (#2324)
-rw-r--r--cli/ops.rs2
-rw-r--r--core/lib.rs1
-rw-r--r--core/modules.rs4
3 files changed, 3 insertions, 4 deletions
diff --git a/cli/ops.rs b/cli/ops.rs
index 610304aea..322e41242 100644
--- a/cli/ops.rs
+++ b/cli/ops.rs
@@ -121,7 +121,7 @@ pub fn dispatch_all_legacy(
op.or_else(move |err: DenoError| -> Result<Buf, ()> {
debug!("op err {}", err);
// No matter whether we got an Err or Ok, we want a serialized message to
- // send back. So transform the DenoError into a deno_buf.
+ // send back. So transform the DenoError into a Buf.
let builder = &mut FlatBufferBuilder::new();
let errmsg_offset = builder.create_string(&format!("{}", err));
Ok(serialize_response(
diff --git a/core/lib.rs b/core/lib.rs
index 9533bce32..10f12815e 100644
--- a/core/lib.rs
+++ b/core/lib.rs
@@ -14,7 +14,6 @@ mod shared_queue;
pub use crate::flags::v8_set_flags;
pub use crate::isolate::*;
pub use crate::js_errors::*;
-pub use crate::libdeno::deno_buf;
pub use crate::libdeno::deno_mod;
pub use crate::libdeno::PinnedBuf;
pub use crate::modules::*;
diff --git a/core/modules.rs b/core/modules.rs
index 0e7cc68aa..0fb3147cb 100644
--- a/core/modules.rs
+++ b/core/modules.rs
@@ -305,7 +305,7 @@ impl ModuleInfo {
}
/// A symbolic module entity.
-pub enum SymbolicModule {
+enum SymbolicModule {
/// This module is an alias to another module.
/// This is useful such that multiple names could point to
/// the same underlying module (particularly due to redirects).
@@ -316,7 +316,7 @@ pub enum SymbolicModule {
#[derive(Default)]
/// Alias-able module name map
-pub struct ModuleNameMap {
+struct ModuleNameMap {
inner: HashMap<String, SymbolicModule>,
}