Skip to content

Commit 1d6da1f

Browse files
committed
cargo fmt
1 parent cbe216d commit 1d6da1f

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

src/lib.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,10 @@ impl Database {
201201
rt.block_on(builder.build()).map_err(Error::from)?
202202
} else if let Some(options) = &opts {
203203
if let Some(sync_url) = &options.syncUrl {
204-
let auth_token = options
205-
.authToken
206-
.as_ref()
207-
.cloned()
208-
.unwrap_or_default();
204+
let auth_token = options.authToken.as_ref().cloned().unwrap_or_default();
209205

210-
let mut builder = libsql::Builder::new_remote_replica(path.clone(), sync_url.clone(), auth_token);
206+
let mut builder =
207+
libsql::Builder::new_remote_replica(path.clone(), sync_url.clone(), auth_token);
211208

212209
if let Some(period) = options.syncPeriod {
213210
if period > 0.0 {
@@ -336,10 +333,12 @@ impl Database {
336333
let value = value_js.get_int32()?;
337334

338335
match value {
339-
0 => { // Authorization.ALLOW
336+
0 => {
337+
// Authorization.ALLOW
340338
builder.allow(&key);
341339
}
342-
1 => { // Authorization.DENY
340+
1 => {
341+
// Authorization.DENY
343342
builder.deny(&key);
344343
}
345344
_ => {

0 commit comments

Comments
 (0)