remove non-pub re-exports in rcore
All checks were successful
buildbot/cargo fmt (1.71) Build done.
buildbot/cargo doc (1.71) Build done.
buildbot/cargo clippy (1.71) Build done.
buildbot/cargo test (1.65) Build done.
buildbot/cargo clippy (1.65) Build done.

This commit is contained in:
AF 2023-08-26 16:36:12 +00:00
parent 62aaad07bb
commit b4610a9d2c
5 changed files with 11 additions and 10 deletions

View File

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

View File

@ -1,4 +1,7 @@
use super::*; use super::{
dectx::{DeCtx, DeCtxT},
*,
};
/// Preferred way to parse [Point]s off of a [Serializer]. /// Preferred way to parse [Point]s off of a [Serializer].
pub(super) struct Addresses { pub(super) struct Addresses {
@ -86,7 +89,7 @@ impl<'a, Ctx: Context<'a>, F: FactoryParse<'a, Ctx>> FactoryExt<'a, Ctx> for F {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use crate::rcore::*; use super::*;
#[test] #[test]
fn can_read_one_address() { fn can_read_one_address() {

View File

@ -1,9 +1,9 @@
use super::*; use super::{addresses::Addresses, *};
pub(super) struct DeCtxT<'a: 'c, 'c, Ctx: Context<'a>> { pub(super) struct DeCtxT<'a: 'c, 'c, Ctx: Context<'a>> {
pub deserializer: &'c mut dyn Deserializer, pub(super) deserializer: &'c mut dyn Deserializer,
pub resolver: &'c Arc<dyn Resolver<'a, Ctx>>, pub(super) resolver: &'c Arc<dyn Resolver<'a, Ctx>>,
pub addresses: &'c mut Addresses, pub(super) addresses: &'c mut Addresses,
} }
pub(super) trait DeCtx<'a, Ctx: Context<'a>> { pub(super) trait DeCtx<'a, Ctx: Context<'a>> {

View File

@ -1,4 +1,4 @@
use super::*; use super::{dectx::DeCtx, *};
/// Demoted [`InCtx`], returned by [`InCtx::demote`]. Use when a concrete type is required. /// Demoted [`InCtx`], returned by [`InCtx::demote`]. Use when a concrete type is required.
pub struct Demoted<'a: 'c, 'c, Ctx: Context<'a>>(pub(super) &'c mut dyn DeCtx<'a, Ctx>); pub struct Demoted<'a: 'c, 'c, Ctx: Context<'a>>(pub(super) &'c mut dyn DeCtx<'a, Ctx>);

View File

@ -1,4 +1,4 @@
use super::*; use super::{addresses::InliningAddresses, dectx::DeCtx, *};
/// Inlining ([Stream]ed) context. /// Inlining ([Stream]ed) context.
pub trait InCtx<'a, Ctx: Context<'a>>: Stream { pub trait InCtx<'a, Ctx: Context<'a>>: Stream {