summaryrefslogtreecommitdiffstats
path: root/src/db/model/state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/model/state.rs')
-rw-r--r--src/db/model/state.rs16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/db/model/state.rs b/src/db/model/state.rs
index 4057652..0eb9b6e 100644
--- a/src/db/model/state.rs
+++ b/src/db/model/state.rs
@@ -68,10 +68,7 @@ pub mod candidate_kind {
pub const FIRST_INTRODUCTION: &str = "first_introduction";
}
-/// The real definition. The module is private, so this `pub`
-/// is not a nameable path from outside; the alias below is the
-/// only way to reach it, and the alias is what carries the
-/// feature-conditional visibility.
+/// The real definition; the alias below carries the visibility.
mod release_state {
use super::{Deserialize, Serialize};
@@ -84,11 +81,7 @@ mod release_state {
}
}
-/// The state column of a release row. `ReleaseRow` is public and its `state` field is typed here, so the type stays reachable in a release build only through this alias.
-///
-/// `pub` only under `test-support`. Production reaches the type
-/// through its own module and never names it from outside; the
-/// outside reader that needs the name is a test.
+/// The state column of a release row.
#[cfg(feature = "test-support")]
pub use release_state::ReleaseState;
@@ -189,10 +182,7 @@ impl std::fmt::Display for SubscriptionState {
mod tests {
use super::*;
- // The three enums declared here keep their `ALL` private, so the round trip
- // through column text — the property that makes a stored row readable back
- // — is checked here rather than from outside. BuildState and StepState are
- // covered in build_state.rs.
+ // `ALL` is private, so the round trip through column text is checked here.
#[test]
fn every_state_declared_here_round_trips_through_its_column_text() {