From db84023f10b1c194b76a72cee581f943f3da47ac Mon Sep 17 00:00:00 2001 From: Maksym Pavlenko Date: Mon, 26 Jul 2021 15:47:24 -0700 Subject: [PATCH] Fix linter Signed-off-by: Maksym Pavlenko --- crates/shim-protos/examples/connect.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/shim-protos/examples/connect.rs b/crates/shim-protos/examples/connect.rs index d5cb4e5..d05394b 100644 --- a/crates/shim-protos/examples/connect.rs +++ b/crates/shim-protos/examples/connect.rs @@ -7,13 +7,13 @@ fn main() { let socket_path = args .get(1) - .ok_or_else(|| "First argument must be shim socket path") + .ok_or("First argument must be shim socket path") .unwrap(); let pid = args .get(2) .and_then(|str| Some(str.to_owned())) - .unwrap_or(String::new()); + .unwrap_or_default(); let client = client::Client::connect(socket_path).expect("Failed to connect to shim");