Skip to content

Commit

Permalink
Fix nightly lints on unused internal exports (#1121)
Browse files Browse the repository at this point in the history
### What
Fix nightly lints on unused internal exports

### Why

#1120 (comment)
  • Loading branch information
leighmcculloch authored Oct 24, 2023
1 parent a7ca886 commit d9aac56
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
9 changes: 0 additions & 9 deletions soroban-sdk/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,6 @@ pub mod internal {
}
}

// Testutils from the environment are pub here, and then pub re-exported out of
// the SDK in the crate::testutils mod.
#[cfg(any(test, feature = "testutils"))]
pub mod testutils {
pub use super::internal::budget::Budget;
pub use super::internal::LedgerInfo;
}

pub use internal::meta;
pub use internal::xdr;
pub use internal::Compare;
pub use internal::ConversionError;
Expand Down
2 changes: 1 addition & 1 deletion soroban-sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ mod alloc;
#[export_name = "_"]
fn __link_sections() {
#[link_section = "contractenvmetav0"]
static __ENV_META_XDR: [u8; env::meta::XDR.len()] = env::meta::XDR;
static __ENV_META_XDR: [u8; env::internal::meta::XDR.len()] = env::internal::meta::XDR;

soroban_sdk_macros::contractmetabuiltin!();
}
Expand Down
3 changes: 0 additions & 3 deletions soroban-sdk/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,3 @@ mod testutils {
map
}
}
#[cfg(any(test, feature = "testutils"))]
#[cfg_attr(feature = "docs", doc(cfg(feature = "testutils")))]
pub use testutils::*;

0 comments on commit d9aac56

Please sign in to comment.