Skip to content

Commit

Permalink
core: Privatize ModuleNameMap SymbolicModule deno_buf (denoland#2324)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju authored and ry committed May 9, 2019
1 parent 07886a0 commit 1fc61f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cli/ops.rs
Expand Up @@ -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(
Expand Down
1 change: 0 additions & 1 deletion core/lib.rs
Expand Up @@ -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::*;
Expand Down
4 changes: 2 additions & 2 deletions core/modules.rs
Expand Up @@ -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).
Expand All @@ -316,7 +316,7 @@ pub enum SymbolicModule {

#[derive(Default)]
/// Alias-able module name map
pub struct ModuleNameMap {
struct ModuleNameMap {
inner: HashMap<String, SymbolicModule>,
}

Expand Down

0 comments on commit 1fc61f3

Please sign in to comment.