You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-31 09:24:31 +03:00
Apply cargo fmt
following changes in nightly rustfmt
rustfmt now formats `let … else { … }` expressions
This commit is contained in:
@ -78,7 +78,8 @@ impl ProxyProtocolV1Info {
|
||||
.as_ref()
|
||||
.windows(2)
|
||||
.take(108)
|
||||
.position(|needle| needle == [0x0D, 0x0A]) else {
|
||||
.position(|needle| needle == [0x0D, 0x0A])
|
||||
else {
|
||||
// If not, it might be because we don't have enough bytes
|
||||
return if buf.remaining() < 108 {
|
||||
Err(E::NotEnoughBytes)
|
||||
|
Reference in New Issue
Block a user