aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/rbw/sock.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/rbw/sock.rs')
-rw-r--r--src/bin/rbw/sock.rs11
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<()> {