summaryrefslogtreecommitdiffstats
path: root/openpgp/src/armor.rs
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2021-04-07 21:38:09 +0200
committerNora Widdecke <nora@sequoia-pgp.org>2021-04-09 13:13:59 +0200
commit792dfa2105e0a75a27ebffdc1cf0ab8873deaac1 (patch)
treef4770d8297c001ef624c7e716a6c45e8c5ea6b63 /openpgp/src/armor.rs
parent8b49cc933cbeda3e34420679288c4985abdc6059 (diff)
Lint: Use char for single characters.
- https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern - https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str
Diffstat (limited to 'openpgp/src/armor.rs')
-rw-r--r--openpgp/src/armor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/armor.rs b/openpgp/src/armor.rs
index 1fa3c671..7f35a804 100644
--- a/openpgp/src/armor.rs
+++ b/openpgp/src/armor.rs
@@ -1074,7 +1074,7 @@ impl<'a> Reader<'a> {
let line = if line.ends_with(&"\r\n"[..]) {
// \r\n.
&line[..line.len() - 2]
- } else if line.ends_with("\n") {
+ } else if line.ends_with('\n') {
// \n.
&line[..line.len() - 1]
} else {