fix(syntax): Fix #92.

It was a missing comma.
This commit is contained in:
Lewin Bormann
2019-05-26 20:12:08 +02:00
parent 126c7cf32f
commit 610240eb7c
2 changed files with 1 additions and 3 deletions

View File

@@ -166,7 +166,7 @@ where
&&PollError::Expired(ref t) => {
self.delegate.expired(t);
return Err(Box::new(StringError::from(pts)));
}
},
&&PollError::AccessDenied => {
self.delegate.denied();
return Err(Box::new(StringError::from(pts)));

View File

@@ -18,8 +18,6 @@ use crate::types::{ApplicationSecret, ConsoleApplicationSecret};
/// Read an application secret from a file.
pub fn read_application_secret(path: &Path) -> io::Result<ApplicationSecret> {
use std::io::Read;
let mut secret = String::new();
let mut file = fs::OpenOptions::new().read(true).open(path)?;
file.read_to_string(&mut secret)?;