diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-11-22 16:04:20 +0100 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-11-29 11:53:55 +0100 |
commit | 566177a617c55b7c15dc27ed682b4a2324951cdb (patch) | |
tree | ffd99f66229336d30717c150ee6a3033d1761020 /ipc | |
parent | 01590ecf0da6ff45f110edb03988efd3847066f8 (diff) |
ipc: Apply clippy:single_char_pattern.
- Improves performance a tiny bit.
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/src/assuan/socket.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/src/assuan/socket.rs b/ipc/src/assuan/socket.rs index a265e96a..8aeef881 100644 --- a/ipc/src/assuan/socket.rs +++ b/ipc/src/assuan/socket.rs @@ -131,7 +131,7 @@ fn read_port_and_nonce_from_string(contents: &[u8]) -> Result<Rendezvous> { // libassuan's Cygwin compatible socket emulation. // Format: "!<socket >%u %c %08x-%08x-%08x-%08x\x00" (scanf-like) Some(buf) => { - let opt_skip_nul = buf.strip_suffix("\x00").unwrap_or(buf); + let opt_skip_nul = buf.strip_suffix('\x00').unwrap_or(buf); // Split into parts: port, kind of socket and nonce let mut iter = opt_skip_nul.split_terminator(' '); match (iter.next(), iter.next(), iter.next()) { |