From 67ac3b67a89ad1d2480c81f25880396d33c4c7ec Mon Sep 17 00:00:00 2001 From: konstin Date: Tue, 30 Jul 2024 10:10:36 +0200 Subject: [PATCH] Clippy updates --- src/version.rs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/version.rs b/src/version.rs index afc5f4e..c28d475 100644 --- a/src/version.rs +++ b/src/version.rs @@ -720,8 +720,8 @@ impl FromStr for Version { /// * The epoch must be `0`. /// * The release portion must have 4 or fewer segments. /// * All release segments, except for the first, must be representable in a -/// `u8`. The first segment must be representable in a `u16`. (This permits -/// calendar versions, like `2023.03`, to be represented.) +/// `u8`. The first segment must be representable in a `u16`. (This permits +/// calendar versions, like `2023.03`, to be represented.) /// * There is *at most* one of the following components: pre, dev or post. /// * If there is a pre segment, then its numeric value is less than 64. /// * If there is a dev or post segment, then its value is less than u8::MAX. @@ -742,21 +742,21 @@ impl FromStr for Version { /// /// * Bytes 6 and 7 correspond to the first release segment as a `u16`. /// * Bytes 5, 4 and 3 correspond to the second, third and fourth release -/// segments, respectively. +/// segments, respectively. /// * Byte 2 corresponds to the post-release segment. If there is no -/// post-release segment, then byte 2 is set to 0x00. This makes "no -/// post-release" sort before "has post-release." The numeric value -/// (constrained to be