Skip to content

Commit 2975b92

Browse files
committed
Make insert_with_key public
1 parent 53a3556 commit 2975b92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ impl<T> SparseMap<T> {
4343

4444
/// Similar to [`Self::insert()`] but provides a [`Key`] before
4545
/// inserting the value.
46-
fn insert_with_key<F>(&mut self, create: F) -> Key
46+
pub fn insert_with_key<F>(&mut self, create: F) -> Key
4747
where
4848
F: FnOnce(&mut Self, Key) -> T,
4949
{

0 commit comments

Comments
 (0)