Skip to content

Commit

Permalink
fix(edit): Make rest of key fn's pub
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Feb 6, 2024
1 parent 582a1a8 commit aab7d33
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 aab7d33

Please sign in to comment.