summaryrefslogtreecommitdiffstats
path: root/openpgp/src/parse/map.rs
AgeCommit message (Collapse)Author
2021-09-30Avoid naming field setting it from variable of the same nameLars Wirzenius
When creating a struct with a field foo, using a variable also named foo, it's not necessary to name the field explicitly. Thus, instead of: Self { foo: foo } use this: Self { foo } The shorter form is more idiomatic and thus less confusing to experienced Rust programmers. This was found by the clippy lint redundant_field_names: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names Sponsored-by: author
2021-09-30Drop unnecessary lifetime notationsLars Wirzenius
Rust can automatically deduce lifetimes in some cases ("lifetime elision"). While adding unnecessary lifetime annotations is not incorrect, it can make it harder to follow the code: why is there a lifetime annotation here? What is the reason why it's needed? Is something unusual going on. This removes a few unnecessary lifetime annotations, as found by the clippy lint needless_lifetimes: https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
2021-08-27openpgp: Correct links.Nora Widdecke
- Some link targets have moved or were replaced since the link's creation. Make them point to the new location or replacement.
2021-08-27Convert markdown to intra-doc links.Nora Widdecke
- Apply cargo intraconv.
2020-12-08openpgp: Make unnamed iterators Send + Sync.Justus Winter
- See #615.
2020-12-08openpgp: Use parens for assert_send_and_sync!.Azul
2020-12-08openpgp: Allow generic types in assert_send_and_sync!.Azul
- Use generics and the anonmymous lifetime in `assert_send_and_sync!`. - See 627.
2020-12-08openpgp: Ensure public types are Send and Sync.Azul
- See #627.
2020-06-24openpgp: Simplify tests.Justus Winter
2020-04-30openpgp: Improve documentation of the parse module.Justus Winter
- See #471.
2020-04-09openpgp: Rename PacketParserBuilder::finalize to build.Justus Winter
- Writers should be finalized, builders should be built.
2020-04-08openpgp: Rename Field::data to as_bytes.Justus Winter
2020-04-08openpgp: Remove convenience function.Justus Winter
2020-04-08openpgp: Restrict visibility.Justus Winter
2020-03-26Remove redundant field names.Wiktor Kwapisiewicz
2020-01-07openpgp: Document that names may change.Justus Winter
2019-09-10openpgp: Do not explicitly store the length.Justus Winter
2019-09-10openpgp: Make fields of parse::map::Field private.Justus Winter
2019-09-10openpgp: Do not expose parse::map::Iter.Justus Winter
2019-04-25openpgp: Improve map of the frame.Justus Winter
- Refine field 'frame' to 'CTB' and 'length'.
2018-12-14openpgp: Introduce trait Parse.Justus Winter
- Trait Parse introduces a uniform interface to parse packets, messages, keys, and related data structures.
2018-12-07openpgp: Make PacketParser's map field private.Justus Winter
2018-11-24Rename the openpgp crate to sequoia-openpgp.Justus Winter
2018-10-23openpgp, tool: Improve iteration over packet maps.Justus Winter
- Using a concrete type allows us to change the implementation later. Furthermore, we avoid a heap allocation.
2018-10-23openpgp: Move Map into a new module.Justus Winter