Skip to content

Commit

Permalink
Merge pull request #677 from epage/key
Browse files Browse the repository at this point in the history
fix(edit): Make rest of key fn's pub
  • Loading branch information
epage committed Feb 6, 2024
2 parents 582a1a8 + aab7d33 commit 6a60576
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/toml_edit/src/inline_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ impl InlineTable {
}

/// Returns an accessor to a key's formatting
fn key(&mut self, key: &str) -> Option<&'_ Key> {
pub fn key(&mut self, key: &str) -> Option<&'_ Key> {
self.items.get(key).map(|kv| &kv.key)
}

Expand Down
2 changes: 1 addition & 1 deletion crates/toml_edit/src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ impl Table {
}

/// Returns an accessor to a key's formatting
fn key(&mut self, key: &str) -> Option<&'_ Key> {
pub fn key(&mut self, key: &str) -> Option<&'_ Key> {
self.items.get(key).map(|kv| &kv.key)
}

Expand Down

0 comments on commit 6a60576

Please sign in to comment.