all: fix clippy lints
This commit is contained in:
parent
daf03b423d
commit
58cab8894c
6 changed files with 9 additions and 9 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue