summaryrefslogtreecommitdiff
path: root/src/id.rs
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2025-08-25 22:38:19 -0400
committerOwen Jacobson <owen@grimoire.ca>2025-08-25 22:38:19 -0400
commit5bc9dc01618421596d65a7046e46559a872c6693 (patch)
tree716d3895b77678adcd9ccab3a4d04ec5eee6eb90 /src/id.rs
parent25914826e0f256789d943cd25375b2444130ce01 (diff)
Group Rust imports by crate.
I've been doing this by hand anyways, and this makes it a _ton_ less tedious to maintain. I think it looks nice. This does, however, require nightly - for formatting only.
Diffstat (limited to 'src/id.rs')
-rw-r--r--src/id.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/id.rs b/src/id.rs
index 86cdf8a..d668cc9 100644
--- a/src/id.rs
+++ b/src/id.rs
@@ -2,8 +2,7 @@ use std::fmt;
use rand::{seq::SliceRandom, thread_rng};
use serde::{Deserializer, Serializer};
-use sqlx::encode::IsNull;
-use sqlx::{Database, Decode, Encode, Type};
+use sqlx::{Database, Decode, Encode, Type, encode::IsNull};
// Make IDs that:
//