Skip to content

Commit 8646090

Browse files
authored
Merge pull request #200 from cipherstash/update-auth-rs-for-new-stable-rust
chore: update code so it builds on 1.86.0
2 parents 368b957 + d269fb0 commit 8646090

File tree

1 file changed

+3
-3
lines changed
  • packages/cipherstash-proxy/src/postgresql/messages/authentication

1 file changed

+3
-3
lines changed

packages/cipherstash-proxy/src/postgresql/messages/authentication/auth.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub struct PasswordMessage {
4747

4848
impl Authentication {
4949
pub fn is_ok(&self) -> bool {
50-
matches!(self.method, AuthenticationMethod::AuthenticationOk { .. })
50+
matches!(self.method, AuthenticationMethod::AuthenticationOk)
5151
}
5252

5353
pub fn is_sasl(&self) -> bool {
@@ -305,8 +305,8 @@ impl Display for SaslMechanism {
305305
impl From<&AuthenticationMethod> for i32 {
306306
fn from(method: &AuthenticationMethod) -> Self {
307307
match method {
308-
AuthenticationMethod::AuthenticationOk { .. } => 0,
309-
AuthenticationMethod::AuthenticationCleartextPassword { .. } => 3,
308+
AuthenticationMethod::AuthenticationOk => 0,
309+
AuthenticationMethod::AuthenticationCleartextPassword => 3,
310310
AuthenticationMethod::Md5Password { .. } => 5,
311311
AuthenticationMethod::Sasl { .. } => 10,
312312
AuthenticationMethod::AuthenticationSASLContinue { .. } => 11,

0 commit comments

Comments
 (0)