1
0
Fork 0
forked from wry/wry

all: fix clippy lints

This commit is contained in:
Julian Orth 2024-02-04 20:17:55 +01:00
parent daf03b423d
commit 58cab8894c
6 changed files with 9 additions and 9 deletions

View file

@ -29,7 +29,7 @@ impl XAuthority {
return Err(XconError::HomeNotSet);
};
let mut buf = vec![];
if let Err(e) = File::open(&path).and_then(|mut f| f.read_to_end(&mut buf)) {
if let Err(e) = File::open(path).and_then(|mut f| f.read_to_end(&mut buf)) {
return Err(XconError::ReadXAuthority(e));
}
Parser::parse(&buf)