diff options
author | Thomas Hurst <tom@hur.st> | 2018-09-04 22:16:02 +0100 |
---|---|---|
committer | Kartikaya Gupta (kats) <staktrace@users.noreply.github.com> | 2018-09-05 04:05:28 -0400 |
commit | fc756c0d435dadb56774dcefd44fe3c161175e5c (patch) | |
tree | 47ba03feef33cd620288c0d863d616adf4428ec8 | |
parent | afe6608906cc4dfdf45ff111a7d9ba1db76db246 (diff) |
Use a char rather than a &str for single-char find()
clippy:single_char_pattern
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -152,7 +152,7 @@ impl<'a> MailHeader<'a> { } fn decode_word(&self, encoded: &str) -> Option<String> { - let ix_delim1 = try_none!(encoded.find("?")); + let ix_delim1 = try_none!(encoded.find('?')); let ix_delim2 = try_none!(find_from(encoded, ix_delim1 + 1, "?")); let charset = &encoded[0..ix_delim1]; |