-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deserializing now borrows symbols appropriately
I noticed that SymbolMap::new() returned an Owned map, which prevented the cheaper option of borrowing when possible. I updated both from_slice and from_read, but the from_read path can't actually call the borrow push function due to not being able to borrow. I also noticed that tuple serialization wasn't tested, although enum tuples were.
- Loading branch information
Showing
2 changed files
with
11 additions
and
2 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