summaryrefslogtreecommitdiffstats
path: root/openpgp/src/armor
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2021-11-22 14:18:15 +0100
committerNora Widdecke <nora@sequoia-pgp.org>2021-11-29 11:53:55 +0100
commit4ecbe9e0348b2d56e2d5431aac54c342a08ca1a6 (patch)
tree0cbd589baf1bf39ce1ed1d87c2af39c2b05566a5 /openpgp/src/armor
parentf63f3181c87877a5a5b261d0f1e206615de613f6 (diff)
Fix Acronym spelling.
- In CamelCase, acronyms count as one word. Apply this rule where API and lalrpop are not impacted. - Found by clippy::upper_case_acronyms.
Diffstat (limited to 'openpgp/src/armor')
-rw-r--r--openpgp/src/armor/crc.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/openpgp/src/armor/crc.rs b/openpgp/src/armor/crc.rs
index 45819692..bfa62d8c 100644
--- a/openpgp/src/armor/crc.rs
+++ b/openpgp/src/armor/crc.rs
@@ -6,16 +6,16 @@ const CRC24_INIT: u32 = 0xB704CE;
const CRC24_POLY: u32 = 0x864CFB;
#[derive(Debug)]
-pub struct CRC {
+pub struct Crc {
n: u32,
}
/// Computes the CRC-24, (see [RFC 4880, section 6.1]).
///
/// [RFC 4880, section 6.1]: https://tools.ietf.org/html/rfc4880#section-6.1
-impl CRC {
+impl Crc {
pub fn new() -> Self {
- CRC { n: CRC24_INIT }
+ Self { n: CRC24_INIT }
}
/// Updates the CRC sum using the given data.
@@ -84,7 +84,7 @@ mod tests {
];
for len in 0..b.len() + 1 {
- assert_eq!(CRC::new().update(&b[..len]).finalize(), crcs[len]);
+ assert_eq!(Crc::new().update(&b[..len]).finalize(), crcs[len]);
}
}
@@ -105,7 +105,7 @@ mod tests {
quickcheck! {
fn compare(b: Vec<u8>) -> bool {
- let mut c = CRC::new();
+ let mut c = Crc::new();
c.update(&b);
assert_eq!(c.finalize(), iterative(&b));
true