summaryrefslogtreecommitdiffstats
path: root/openpgp/src/armor.rs
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.rs
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.rs')
-rw-r--r--openpgp/src/armor.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/openpgp/src/armor.rs b/openpgp/src/armor.rs
index a1eb3c7c..676bc306 100644
--- a/openpgp/src/armor.rs
+++ b/openpgp/src/armor.rs
@@ -51,7 +51,7 @@ use crate::{vec_resize, vec_truncate};
mod base64_utils;
use base64_utils::*;
mod crc;
-use crc::CRC;
+use crc::Crc;
/// The encoded output stream must be represented in lines of no more
/// than 76 characters each (see (see [RFC 4880, section
@@ -236,7 +236,7 @@ pub struct Writer<W: Write> {
kind: Kind,
stash: Vec<u8>,
column: usize,
- crc: CRC,
+ crc: Crc,
header: Vec<u8>,
dirty: bool,
scratch: Vec<u8>,
@@ -309,7 +309,7 @@ impl<W: Write> Writer<W> {
kind,
stash: Vec::<u8>::with_capacity(2),
column: 0,
- crc: CRC::new(),
+ crc: Crc::new(),
header: Vec::with_capacity(128),
dirty: false,
scratch: vec![0; 4096],
@@ -558,7 +558,7 @@ pub struct Reader<'a> {
kind: Option<Kind>,
mode: ReaderMode,
decode_buffer: Vec<u8>,
- crc: CRC,
+ crc: Crc,
expect_crc: Option<u32>,
initialized: bool,
headers: Vec<(String, String)>,
@@ -593,6 +593,7 @@ impl Default for ReaderMode {
/// State for transforming a message using the Cleartext Signature
/// Framework into an inline signed message.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
+#[allow(clippy::upper_case_acronyms)]
enum CSFTransformer {
OPS,
Literal,
@@ -747,7 +748,7 @@ impl<'a> Reader<'a> {
kind: None,
mode,
decode_buffer: Vec::<u8>::with_capacity(1024),
- crc: CRC::new(),
+ crc: Crc::new(),
expect_crc: None,
headers: Vec::new(),
initialized: false,