code cleanup

This commit is contained in:
Grant Limberg 2022-05-11 22:41:35 -07:00
parent 4151749dc9
commit e7fee4c6ce
No known key found for this signature in database
GPG key ID: 8F2F97D3BE8D7735
3 changed files with 362 additions and 318 deletions

View file

@ -13,10 +13,11 @@
use thiserror::Error;
#[derive(Error, Debug)]
pub enum ZeroIDCError
{
pub enum ZeroIDCError {
#[error(transparent)]
DiscoveryError(#[from] openidconnect::DiscoveryError<openidconnect::reqwest::Error<reqwest::Error>>),
DiscoveryError(
#[from] openidconnect::DiscoveryError<openidconnect::reqwest::Error<reqwest::Error>>,
),
#[error(transparent)]
ParseError(#[from] url::ParseError),
@ -30,8 +31,6 @@ pub struct SSOExchangeError {
impl SSOExchangeError {
pub fn new(message: String) -> Self {
SSOExchangeError{
message
}
SSOExchangeError { message }
}
}