Fix linter
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
parent
baf8effb21
commit
db84023f10
|
|
@ -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");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue