style: import ordering + blank lines after now_unix sweep (treefmt)

This commit is contained in:
müde 2026-07-06 22:08:40 +02:00
commit dc6a37b29a
14 changed files with 10 additions and 26 deletions

View file

@ -6,9 +6,9 @@ use std::path::Path;
use std::sync::Mutex;
use anyhow::{Context, Result, bail};
use hive_sh4re::wire_time::now_unix;
use hive_sh4re::{Approval, ApprovalKind, ApprovalStatus};
use rusqlite::{Connection, OptionalExtension, params};
use hive_sh4re::wire_time::now_unix;
const SCHEMA: &str = r"
CREATE TABLE IF NOT EXISTS approvals (
@ -367,7 +367,6 @@ fn row_to_approval(row: &rusqlite::Row<'_>) -> rusqlite::Result<Approval> {
})
}
fn kind_from_str(s: &str) -> Result<ApprovalKind> {
Ok(match s {
"apply_commit" => ApprovalKind::ApplyCommit,
@ -380,7 +379,6 @@ fn kind_from_str(s: &str) -> Result<ApprovalKind> {
})
}
#[cfg(test)]
mod tests {
use super::*;