Skip to content

Commit

Permalink
Change Storage::get to pub(crate) (#1100)
Browse files Browse the repository at this point in the history
### What
Change `Storage::get` from `pub` to `pub(crate)`.

### Why
The function is intended to be an internal function that the instance,
temporary, and persistent types call into.

The `Storage::has` and `Storage::set` are marked as `pub(crate)`.

Looks like we accidentally marked it as `pub`.
  • Loading branch information
leighmcculloch authored Oct 3, 2023
1 parent 612ba6c commit 3db7a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soroban-sdk/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl Storage {
/// converting the internal value representation to `V`, or will panic if
/// the conversion to `V` fails.
#[inline(always)]
pub fn get<K, V>(&self, key: &K, storage_type: StorageType) -> Option<V>
pub(crate) fn get<K, V>(&self, key: &K, storage_type: StorageType) -> Option<V>
where
K: IntoVal<Env, Val>,
V: TryFromVal<Env, Val>,
Expand Down

0 comments on commit 3db7a43

Please sign in to comment.