feat(domain): restore must_use message; test TermRef accessors

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-02 08:42:14 +02:00
parent 8cf737d8a9
commit d5ed2a261f
2 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ macro_rules! id_newtype {
impl $name {
/// Generate a fresh random id.
#[must_use]
#[must_use = "generating an id and discarding it is almost certainly a mistake"]
pub fn new() -> Self {
Self(uuid::Uuid::new_v4())
}