fix(projects): satisfy current clippy

Signed-off-by: John Tennant <jtennant@squareup.com>
This commit is contained in:
John Tennant
2026-08-31 19:31:44 -04:00
parent 7b20873104
commit cc209ae296
2 changed files with 6 additions and 9 deletions

View File

@@ -367,13 +367,10 @@ async fn current_project_revision(
})
.collect();
let mut current = project.id.to_hex();
loop {
let Some((event_id, revision)) = parsed
.iter()
.find(|(_, revision)| revision.expected_revision == current)
else {
break;
};
while let Some((event_id, revision)) = parsed
.iter()
.find(|(_, revision)| revision.expected_revision == current)
{
apply_project_revision(
&mut related_channels,
home_channel,

View File

@@ -3,7 +3,7 @@
use buzz_core::kind::KIND_PROJECT;
use buzz_core::project_revision::{apply_project_revision, can_manage_project, ProjectRevision};
use buzz_core::CommunityId;
use chrono::{DateTime, Utc};
use chrono::Utc;
use nostr::Event;
use sqlx::Row;
use uuid::Uuid;
@@ -229,7 +229,7 @@ impl Db {
.bind(&base_id)
.bind(event.id.as_bytes().as_slice())
.bind(&channels)
.bind(DateTime::<Utc>::from(Utc::now()))
.bind(Utc::now())
.execute(&mut *tx)
.await?;
tx.commit().await?;