Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce how much code is generated #745

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
1a739c1
refactor: Factor out whitespace skipping into helpers
Jun 30, 2020
b01ff91
refactor: Add next_char_or_error
Jul 2, 2020
fcd4dc1
Move more non-generic code out of the generic path
Jul 2, 2020
57dc798
Move eat_char into the _until function
Jul 2, 2020
b9540a7
Move even more code out of the generic deserialize_struct
Jul 2, 2020
3e0d096
Move recursion checking out of the generic path
Jul 2, 2020
b63097f
Factor out non-generic parts of next_element_seed
Jul 2, 2020
3c327b0
Factor out non-generic parts of next_key_seed
Jul 2, 2020
4e98512
Use try_with!
Jul 2, 2020
e6216e6
Move non-generic code out of deserialize_any
Jul 2, 2020
1ca5734
s/field/element/
Jul 2, 2020
061247b
Avoid using map in generic functions
Jul 2, 2020
52259b9
refactor: Add helpers for serializing begin/end key/object
Jul 2, 2020
87d36a5
Move out code from the generic string deserialization methods
Jul 3, 2020
322f8c4
Shrink deserialize_struct a bit more
Jul 3, 2020
5d5ad07
refactor: Factor out the duplicated variant serialization
Jan 4, 2021
33ef802
refactor: add begin/end_string helpers
Jan 4, 2021
5cf7a6f
refactor: Avoid a tri! in commonly instantiated code
Jan 4, 2021
cacd1b7
refactor: Various shortenings
Jan 4, 2021
6fd698c
Further extract code out of deserialize_any
Jan 5, 2021
9f16c61
refactor: Extract parse_option
Jan 5, 2021
d28a020
Shorten unit deserializing
Jan 5, 2021
f77905a
Extract helpers to reduce map_err calls
Jan 5, 2021
760ccb2
refactor: Remove unnecessary tri! calls
Jan 5, 2021
9956638
refactor: Extract a less generic part of deserialize_number
Jan 5, 2021
0f15688
refactor: Extract code from deserialize_enum
Jan 5, 2021
60cdfbd
refactor: De-duplicate the recursion checking
Jan 5, 2021
4de41fd
Add an OptionResult enum
Jan 11, 2021
9e56187
inline
Jan 11, 2021
010eb7c
Extract prefixes for deserialize_seq and map
Jan 12, 2021
2067058
Reuse Deserialzer::parse_str
Jan 12, 2021
0fa7a8f
Remove end_map, end_seq
Jan 12, 2021
f595267
Fix check_recursion_prefix
Jan 12, 2021
60e4ac2
Fix clippy
Jan 12, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view