Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit 3143d3e

Browse files
committed
Uglify
1 parent 0a55a3c commit 3143d3e

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

sqld/src/batch/mod.rs

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,12 @@ fn eval_cond(ctx: &Ctx, cond: &proto::BatchCond) -> Result<bool> {
8282
Some(Err(_)) => true,
8383
None => false,
8484
},
85-
proto::BatchCond::Not { cond } =>
86-
!eval_cond(ctx, cond)?,
87-
proto::BatchCond::And { conds } =>
88-
conds.iter().try_fold(true, |x, cond| {
89-
eval_cond(ctx, cond).map(|y| x & y)
90-
})?,
91-
proto::BatchCond::Or { conds } =>
92-
conds.iter().try_fold(false, |x, cond| {
93-
eval_cond(ctx, cond).map(|y| x | y)
94-
})?,
85+
proto::BatchCond::Not { cond } => !eval_cond(ctx, cond)?,
86+
proto::BatchCond::And { conds } => conds
87+
.iter()
88+
.try_fold(true, |x, cond| eval_cond(ctx, cond).map(|y| x & y))?,
89+
proto::BatchCond::Or { conds } => conds
90+
.iter()
91+
.try_fold(false, |x, cond| eval_cond(ctx, cond).map(|y| x | y))?,
9592
})
9693
}

sqld/src/hrana/session.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ use tokio::sync::{mpsc, oneshot};
77

88
use super::{proto, Server};
99
use crate::auth::{AuthError, Authenticated};
10-
use crate::database::Database;
1110
use crate::batch;
11+
use crate::database::Database;
1212

1313
/// Session-level state of an authenticated Hrana connection.
1414
pub struct Session {

0 commit comments

Comments
 (0)