Fix linter

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
Maksym Pavlenko 2021-07-26 15:47:24 -07:00
parent baf8effb21
commit db84023f10
1 changed files with 2 additions and 2 deletions

View File

@ -7,13 +7,13 @@ fn main() {
let socket_path = args let socket_path = args
.get(1) .get(1)
.ok_or_else(|| "First argument must be shim socket path") .ok_or("First argument must be shim socket path")
.unwrap(); .unwrap();
let pid = args let pid = args
.get(2) .get(2)
.and_then(|str| Some(str.to_owned())) .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"); let client = client::Client::connect(socket_path).expect("Failed to connect to shim");