diff options
author | Jesse Luehrs <doy@tozt.net> | 2020-04-12 01:29:14 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2020-04-12 01:37:35 -0400 |
commit | 14b647f9d6dbb76960e6cad6f51531ea6a8dbf3a (patch) | |
tree | a9d1c38e7c03f1cb8d1309a4623c46d636366367 /src/bin/rbw/sock.rs | |
parent | 236f06736e45c2a70f43589c9d447a0a3ef240b5 (diff) | |
download | rbw-14b647f9d6dbb76960e6cad6f51531ea6a8dbf3a.tar.gz rbw-14b647f9d6dbb76960e6cad6f51531ea6a8dbf3a.zip |
avoid throwing errors for things we don't care about
Diffstat (limited to 'src/bin/rbw/sock.rs')
-rw-r--r-- | src/bin/rbw/sock.rs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/bin/rbw/sock.rs b/src/bin/rbw/sock.rs index 4534e5e..8dca169 100644 --- a/src/bin/rbw/sock.rs +++ b/src/bin/rbw/sock.rs @@ -4,13 +4,10 @@ use std::io::{BufRead as _, Write as _}; pub struct Sock(std::os::unix::net::UnixStream); impl Sock { - pub fn connect() -> anyhow::Result<Self> { - Ok(Self( - std::os::unix::net::UnixStream::connect( - rbw::dirs::runtime_dir().join("socket"), - ) - .context("failed to connect to rbw-agent")?, - )) + pub fn connect() -> std::io::Result<Self> { + Ok(Self(std::os::unix::net::UnixStream::connect( + rbw::dirs::runtime_dir().join("socket"), + )?)) } pub fn send(&mut self, msg: &rbw::agent::Request) -> anyhow::Result<()> { |