-
Notifications
You must be signed in to change notification settings - Fork 631
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
store: make TrieNode’s debug formatting more concise (#7557)
The default Debug derive for types is quite verbose with a lot of vertical spacing. For example, TrieNode branches are printed as a list with each empty branch as a None on its own line. This isn’t very ergonomic when trying to debug trie nodes and printing a lot of the nodes to output. Replace the default Debug implementation for TrieNode, NodeHandle and ValueHandle by custom ones which are more concise and don’t waste space on empty nodes.
- Loading branch information
Showing
1 changed file
with
55 additions
and
3 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