Run the formatter over the shard-naming change
Build and test / android-image (push) Canceled after 1m38s
Build and test / Android (aarch64) (push) Canceled after 0s
Build and test / Desktop (Linux) (push) Canceled after 1m34s
Build and test / Layer separation (push) Canceled after 0s
🐳 Android image / Build and push (push) Canceled after 1m38s
Traceability / Requirement traces (push) Successful in 1m2s

`cargo fmt --all -- --check` is a CI gate and 9a51cc8 landed two files past
it, so the build has been red on master since regardless of what came after.
Whitespace only — a wrapped `Ok(...)` and two `assert_eq!`s split across
lines. No logic is touched and the tests are unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-16 22:29:28 +02:00
co-authored by Claude Opus 5
parent 151dcc3c02
commit 9e47133304
2 changed files with 13 additions and 5 deletions
+8 -2
View File
@@ -404,8 +404,14 @@ mod tests {
#[test]
fn shard_names_round_trip() {
assert_eq!(shard_name("a1b2c3d4e5f6", 0), "shard-a1b2c3d4e5f6-0000.sqlite");
assert_eq!(shard_name("a1b2c3d4e5f6", 42), "shard-a1b2c3d4e5f6-0042.sqlite");
assert_eq!(
shard_name("a1b2c3d4e5f6", 0),
"shard-a1b2c3d4e5f6-0000.sqlite"
);
assert_eq!(
shard_name("a1b2c3d4e5f6", 42),
"shard-a1b2c3d4e5f6-0042.sqlite"
);
assert_eq!(
parse_shard(&shard_name("a1b2c3d4e5f6", 7)),
Some(("a1b2c3d4e5f6", 7))