about summary refs log tree commit diff
path: root/library/core/src/net/parser.rs
AgeCommit message (Collapse)AuthorLines
2025-08-26remove deprecated Error::description in implsMarijn Schouten-10/+5
2024-08-04refactor: standardize duplicate processes in parserKonippi-32/+24
2024-07-26Fix doc nitsJohn Arundel-10/+10
Many tiny changes to stdlib doc comments to make them consistent (for example "Returns foo", rather than "Return foo", per RFC1574), adding missing periods, paragraph breaks, backticks for monospace style, and other minor nits. https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md#appendix-a-full-conventions-text
2024-03-25Import the 2021 prelude in the core crateDaniel Paoliello-1/+0
2024-03-04net: Add branch to Parser::read_number for parsing without checkedokaneco-21/+51
arithmetic If `max_digits.is_some()`, then we know we are parsing a `u8` or `u16` because `read_number` is only called with `Some(3)` or `Some(4)`. Both types fit well within a `u32` without risk of overflow. Thus, we can use plain arithmetic to avoid extra instructions from `checked_mul` and `checked_add`.
2023-04-12remove some unneeded importsKaDiWa-1/+1
2023-02-26Move IpAddr and SocketAddr to coreLinus Färnstrand-0/+498