restrict DeCtx visibility

This commit is contained in:
AF 2023-06-30 23:56:52 +00:00
parent d0edd0e811
commit d9d50e8bc0
2 changed files with 2 additions and 3 deletions

View File

@ -24,8 +24,7 @@ use crate::func::*;
pub use self::addresses::{Addresses, InliningAddresses};
pub use self::context::Context;
pub use self::dectx::DeCtx;
use self::dectx::DeCtxT;
use self::dectx::{DeCtx, DeCtxT};
pub use self::diagnostic::Diagnostic;
pub use self::hashing::{Hash, HASH_SIZE, HASH_ZEROS};
pub use self::inctx::InCtx;

View File

@ -6,7 +6,7 @@ pub(super) struct DeCtxT<'a: 'c, 'c, Ctx: Context<'a>> {
pub addresses: &'c mut Addresses,
}
pub trait DeCtx<'a, Ctx: Context<'a>> {
pub(super) trait DeCtx<'a, Ctx: Context<'a>> {
fn deserializer(&mut self) -> &mut dyn Deserializer;
fn tell(&self) -> usize;