From b60b63a682f5cbc852457e475a9c198fb7dfffc6 Mon Sep 17 00:00:00 2001 From: Bartosz Sypytkowski Date: Mon, 28 Oct 2024 14:27:07 +0100 Subject: [PATCH] chore: clippy warnings --- script/run_local_server.sh | 2 +- tests/collab/util.rs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/script/run_local_server.sh b/script/run_local_server.sh index 10a87c5e..a56b2f03 100755 --- a/script/run_local_server.sh +++ b/script/run_local_server.sh @@ -53,7 +53,7 @@ then cargo sqlx prepare --workspace fi -cargo run --package xtask +cargo run --release --package xtask # revert to require signup email verification export GOTRUE_MAILER_AUTOCONFIRM=false diff --git a/tests/collab/util.rs b/tests/collab/util.rs index 7fc6daa5..95bed297 100644 --- a/tests/collab/util.rs +++ b/tests/collab/util.rs @@ -1,4 +1,4 @@ -use std::time::{Duration, Instant}; +use std::time::Duration; use anyhow::Context; use collab::core::origin::CollabOrigin; @@ -158,7 +158,6 @@ impl TestScenario { let collab = lock.borrow(); let txn = collab.context.transact(); let txt: TextRef = collab.data.get_with_txn(&txn, "text-id").unwrap(); - let actual = txt.get_string(&txn); - actual + txt.get_string(&txn) } }