summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet/header
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2019-09-26 10:03:56 +0200
committerNeal H. Walfield <neal@pep.foundation>2019-09-27 22:07:14 +0200
commita69ec9f9c5097bb8acd1a4fe2144328c9dc4ade7 (patch)
treefa6c1e0cfec23336e81e249e29b32acc3e627f28 /openpgp/src/packet/header
parentc442cd94a22657b315e825b46ea55edf9169e397 (diff)
openpgp: Clean up deprecated range syntax
The `...` syntax is deprecated in favour of `..=` since 1.26 and is an idiom lint in the 2018 edition. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'openpgp/src/packet/header')
-rw-r--r--openpgp/src/packet/header/ctb.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/packet/header/ctb.rs b/openpgp/src/packet/header/ctb.rs
index 6e43fecf..fbe81a9a 100644
--- a/openpgp/src/packet/header/ctb.rs
+++ b/openpgp/src/packet/header/ctb.rs
@@ -137,9 +137,9 @@ impl CTBOld {
BodyLength::Full(l) => {
match l {
// One octet length.
- 0 ... 0xFF => PacketLengthType::OneOctet,
+ 0 ..= 0xFF => PacketLengthType::OneOctet,
// Two octet length.
- 0x1_00 ... 0xFF_FF => PacketLengthType::TwoOctets,
+ 0x1_00 ..= 0xFF_FF => PacketLengthType::TwoOctets,
// Four octet length,
_ => PacketLengthType::FourOctets,
}