diff --git a/src/service/oauth/grant.rs b/src/service/oauth/grant.rs index 67a25b299..d1dd8efc1 100644 --- a/src/service/oauth/grant.rs +++ b/src/service/oauth/grant.rs @@ -125,6 +125,7 @@ pub struct OAuthError { } impl OAuthError { + #[must_use] pub const fn invalid_request(error_description: &'static str) -> Self { Self { error: ErrorCode::InvalidRequest, @@ -132,6 +133,7 @@ pub const fn invalid_request(error_description: &'static str) -> Self { } } + #[must_use] pub const fn invalid_grant(error_description: &'static str) -> Self { Self { error: ErrorCode::InvalidGrant,