mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-31 12:00:42 -07:00
code cleanup
This commit is contained in:
parent
4151749dc9
commit
e7fee4c6ce
3 changed files with 362 additions and 318 deletions
|
@ -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 }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue