-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply feedkback from porting cargo (#240)
* fix!: Make `Document::root` private This gives us more implementation flexibility BREAKING CHANGE: Instead of dealing with `Document::root`, use `Document::as_table()` or `Document::as_table_mut()`. * refactor: Use types to enforce root item's type * feat: Make it easier to work with root table In porting cargo to toml_edit, I found it would be nice if we allowed the document to be used as the table it wraps. * fix!: Unify the normal/easy `Index` traits This trait isn't normally interacted with by users * feat: Non-panicking indexing on Items This is being pulled over from the `easy` API. Found this would be useful inside of cargo. Some direct document interation is needed before using serde to convert it to native types. * style: Make clippy happy
- Loading branch information
Showing
9 changed files
with
170 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.