aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/rbw
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2020-05-25 22:00:19 -0400
committerJesse Luehrs <doy@tozt.net>2020-05-25 22:00:19 -0400
commitf41f8243a78aa40e737053d560060ad94a1c7b5c (patch)
treec8f16e102eaa872efaac2a75dba058da439ca507 /src/bin/rbw
parentfe23507043d5d476e382d364270fcc9419475958 (diff)
downloadrbw-f41f8243a78aa40e737053d560060ad94a1c7b5c.tar.gz
rbw-f41f8243a78aa40e737053d560060ad94a1c7b5c.zip
remove more unnecessary error contexts
Diffstat (limited to 'src/bin/rbw')
-rw-r--r--src/bin/rbw/sock.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/rbw/sock.rs b/src/bin/rbw/sock.rs
index b3ff1d6..f3fe365 100644
--- a/src/bin/rbw/sock.rs
+++ b/src/bin/rbw/sock.rs
@@ -4,6 +4,8 @@ use std::io::{BufRead as _, Write as _};
pub struct Sock(std::os::unix::net::UnixStream);
impl Sock {
+ // not returning anyhow::Result here because we want to be able to handle
+ // specific kinds of std::io::Results differently
pub fn connect() -> std::io::Result<Self> {
Ok(Self(std::os::unix::net::UnixStream::connect(
rbw::dirs::socket_file(),