diff options
Diffstat (limited to 'src/db/model')
| -rw-r--r-- | src/db/model/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/db/model/mod.rs b/src/db/model/mod.rs index 7c1fbf5..827ce5e 100644 --- a/src/db/model/mod.rs +++ b/src/db/model/mod.rs @@ -193,6 +193,9 @@ impl CandidateRow { } } +/// Test-tier only: the one reader that needed it is `db::world_members`, which +/// is itself gated because nothing in production reads a world snapshot back. +#[cfg(feature = "test-support")] pub(crate) fn json_or<T: serde::de::DeserializeOwned>(s: &str, fallback: T) -> T { serde_json::from_str(s).unwrap_or(fallback) } |
