Skip to content

Commit dbf80f9

Browse files
authored
Struct is public only within crate. (#210)
* Struct is public only within crate. * Declare pub(crate) in mod.rs.
1 parent 1bc4841 commit dbf80f9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/execution_plans/metrics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::fmt::{Debug, Formatter};
1111

1212
/// A transparent wrapper that delegates all execution to its child but returns custom metrics. This node is invisible during display.
1313
/// The structure of a plan tree is closely tied to the [TaskMetricsRewriter].
14-
pub struct MetricsWrapperExec {
14+
pub(crate) struct MetricsWrapperExec {
1515
inner: Arc<dyn ExecutionPlan>,
1616
/// metrics for this plan node.
1717
metrics: MetricsSet,
@@ -21,7 +21,7 @@ pub struct MetricsWrapperExec {
2121
}
2222

2323
impl MetricsWrapperExec {
24-
pub fn new(inner: Arc<dyn ExecutionPlan>, metrics: MetricsSet) -> Self {
24+
pub(crate) fn new(inner: Arc<dyn ExecutionPlan>, metrics: MetricsSet) -> Self {
2525
Self {
2626
inner,
2727
metrics,

src/execution_plans/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ mod network_shuffle;
66
mod partition_isolator;
77

88
pub use distributed::DistributedExec;
9-
pub use metrics::MetricsWrapperExec;
9+
pub(crate) use metrics::MetricsWrapperExec;
1010
pub use network_coalesce::{NetworkCoalesceExec, NetworkCoalesceReady};
1111
pub use network_shuffle::{NetworkShuffleExec, NetworkShuffleReadyExec};
1212
pub use partition_isolator::PartitionIsolatorExec;

0 commit comments

Comments
 (0)