Skip to content

Commit

Permalink
fix private type visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
miraclx committed Aug 22, 2022
1 parent 1c1b00f commit 9a8fdfa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ schemars = "0.8.8"
serde_json = "1"

[features]
chunked-entries = []
__chunked-entries = []
12 changes: 6 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use std::collections::HashMap;

#[cfg(feature = "chunked-entries")]
mod private;
#[cfg(feature = "chunked-entries")]
pub use private::{AbiCombineError, AbiCombineErrorKind, ChunkedAbiEntry};
#[doc(hidden)]
#[cfg(feature = "__chunked-entries")]
#[path = "private.rs"]
pub mod __private;

use borsh::schema::{BorshSchemaContainer, Declaration, Definition, Fields, VariantName};
use schemars::schema::{RootSchema, Schema};
Expand All @@ -24,8 +24,8 @@ pub struct AbiRoot {
}

impl AbiRoot {
#[cfg(feature = "chunked-entries")]
pub fn new(metadata: AbiMetadata, versioned_abi: ChunkedAbiEntry) -> AbiRoot {
#[cfg(feature = "__chunked-entries")]
pub fn new(metadata: AbiMetadata, versioned_abi: __private::ChunkedAbiEntry) -> AbiRoot {
AbiRoot {
abi_schema_version: versioned_abi.abi_schema_version,
metadata,
Expand Down

0 comments on commit 9a8fdfa

Please sign in to comment.