Skip to content

Commit

Permalink
Reduce visibilities
Browse files Browse the repository at this point in the history
Reviewed By: IanChilds

Differential Revision: D40129238

fbshipit-source-id: 03cd21c38f87fe1ff778606dbf82d6dbcd136f1c
  • Loading branch information
stepancheg authored and facebook-github-bot committed Oct 6, 2022
1 parent 75ffc1b commit ab59a81
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dice/dice/src/introspection/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ use serde::Serializer;
use crate::introspection::serialize_dense_graph;

pub struct GraphIntrospectable {
pub introspectables: Vec<Arc<dyn EngineForIntrospection + Send + Sync + 'static>>,
pub(crate) introspectables: Vec<Arc<dyn EngineForIntrospection + Send + Sync + 'static>>,
}

impl Serialize for GraphIntrospectable {
Expand Down Expand Up @@ -170,7 +170,7 @@ pub struct SerializedGraphNodesForKey {
pub nodes: BTreeMap<VersionNumber, Option<SerializedGraphNode>>,
}

pub trait EngineForIntrospection {
pub(crate) trait EngineForIntrospection {
fn keys<'a>(&'a self) -> Box<dyn Iterator<Item = AnyKey> + 'a>;
fn edges<'a>(&'a self) -> Box<dyn Iterator<Item = (AnyKey, Vec<AnyKey>)> + 'a>;
fn keys_currently_running<'a>(
Expand All @@ -184,7 +184,7 @@ pub trait EngineForIntrospection {
fn currently_running_key_count(&self) -> usize;
}

pub trait KeyForIntrospection: Display + 'static {
pub(crate) trait KeyForIntrospection: Display + 'static {
fn get_key_equality(&self) -> PartialEqAny;

fn hash(&self, state: &mut dyn Hasher);
Expand All @@ -207,7 +207,7 @@ where
}
}

pub struct AnyKey {
pub(crate) struct AnyKey {
pub inner: Box<dyn KeyForIntrospection>,
}

Expand Down

0 comments on commit ab59a81

Please sign in to comment.