From 40f4d51da8c799e3dfb525b99def8f2812689f6c Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 19 Feb 2021 01:05:27 -0500 Subject: clippy --- src/bin/rbw/actions.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/bin/rbw/actions.rs') diff --git a/src/bin/rbw/actions.rs b/src/bin/rbw/actions.rs index ec6ba99..75703f9 100644 --- a/src/bin/rbw/actions.rs +++ b/src/bin/rbw/actions.rs @@ -34,7 +34,7 @@ pub fn quit() -> anyhow::Result<()> { .and_then(|p| p.to_str().map(|s| s.to_string())), action: rbw::protocol::Action::Quit, })?; - wait_for_exit(pid)?; + wait_for_exit(pid); Ok(()) } Err(e) => match e.kind() { @@ -148,12 +148,11 @@ fn connect() -> anyhow::Result { }) } -fn wait_for_exit(pid: nix::unistd::Pid) -> anyhow::Result<()> { +fn wait_for_exit(pid: nix::unistd::Pid) { loop { if nix::sys::signal::kill(pid, None).is_err() { break; } std::thread::sleep(std::time::Duration::from_millis(10)); } - Ok(()) } -- cgit v1.2.3-54-g00ecf