mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-01-08 12:06:59 +01:00
@@ -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)));
|
||||
|
||||
@@ -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)?;
|
||||
|
||||
Reference in New Issue
Block a user