move Clock/MockClock/SystemClock/BoxClock/BoxRng to mas-data-model : format
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
//! for testing.
|
||||
//!
|
||||
//! [`MockClock`]: crate::clock::MockClock
|
||||
//!
|
||||
|
||||
#![allow(clippy::module_name_repetitions)]
|
||||
|
||||
|
||||
@@ -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.
|
||||
//!
|
||||
|
||||
Reference in New Issue
Block a user