From 21c75d9d94e1a338501d2011f17710ff5174ac01 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Wed, 12 Oct 2022 04:40:46 +0000 Subject: Fix clippy warnings This patch applies all clippy lints currently present on the latest clippy master than are compatible with our oldstable clippy (only exception is the `_else(||` stuff). --- alacritty/src/ipc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alacritty/src/ipc.rs') diff --git a/alacritty/src/ipc.rs b/alacritty/src/ipc.rs index e229a048..368015a9 100644 --- a/alacritty/src/ipc.rs +++ b/alacritty/src/ipc.rs @@ -119,7 +119,7 @@ fn find_socket(socket_path: Option) -> IoResult { // Handle environment variable. if let Ok(path) = env::var(ALACRITTY_SOCKET_ENV) { let socket_path = PathBuf::from(path); - if let Ok(socket) = UnixStream::connect(&socket_path) { + if let Ok(socket) = UnixStream::connect(socket_path) { return Ok(socket); } } -- cgit