Fixed clippy warnings.
This commit is contained in:
@@ -45,11 +45,11 @@ where
|
||||
.ok_or(AuthHeaderError::MalformedValue)?;
|
||||
|
||||
if scheme.is_empty() {
|
||||
return Err(AuthHeaderError::EmptyScheme)?;
|
||||
return Err(AuthHeaderError::EmptyScheme);
|
||||
}
|
||||
|
||||
if token.is_empty() {
|
||||
return Err(AuthHeaderError::EmptyToken)?;
|
||||
return Err(AuthHeaderError::EmptyToken);
|
||||
}
|
||||
|
||||
Ok(AuthHeader {
|
||||
|
||||
Reference in New Issue
Block a user