move Clock/MockClock/SystemClock/BoxClock/BoxRng to mas-data-model : format

This commit is contained in:
mcalinghee
2025-07-31 12:35:56 +02:00
parent 9fa91b9524
commit a45a1d7f73
2 changed files with 3 additions and 4 deletions

View File

@@ -11,7 +11,6 @@
//! for testing.
//!
//! [`MockClock`]: crate::clock::MockClock
//!
#![allow(clippy::module_name_repetitions)]

View File

@@ -79,9 +79,9 @@
//! and use that error type
//! 2. Lookups return an `Result<Option<T>, Self::Error>`, because 'not found'
//! errors are usually cases that are handled differently
//! 3. Operations that need to record the current type use a [`mas_data_model::Clock`]
//! parameter. Operations that need to generate new IDs also use a random
//! number generator.
//! 3. Operations that need to record the current type use a
//! [`mas_data_model::Clock`] parameter. Operations that need to generate
//! new IDs also use a random number generator.
//! 4. All the methods use an `&mut self`. This is ensures only one operation
//! is done at a time on a single repository instance.
//!