Skip to content

Commit 8186d1c

Browse files
committed
Remove unnecessary pubs
1 parent 254525d commit 8186d1c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/data_race.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ impl WriteType {
215215
/// Memory Cell vector clock metadata
216216
/// for data-race detection.
217217
#[derive(Clone, PartialEq, Eq, Debug)]
218-
pub struct MemoryCellClocks {
218+
struct MemoryCellClocks {
219219
/// The vector-clock timestamp of the last write
220220
/// corresponding to the writing threads timestamp.
221221
write: VTimestamp,
@@ -255,7 +255,7 @@ impl MemoryCellClocks {
255255

256256
/// Load the internal atomic memory cells if they exist.
257257
#[inline]
258-
pub fn atomic(&self) -> Option<&AtomicMemoryCellClocks> {
258+
fn atomic(&self) -> Option<&AtomicMemoryCellClocks> {
259259
match &self.atomic_ops {
260260
Some(op) => Some(&*op),
261261
None => None,
@@ -1206,7 +1206,7 @@ pub struct GlobalState {
12061206
/// Any data-races must be recorded after this
12071207
/// so concurrent execution can ignore recording
12081208
/// any data-races.
1209-
pub multi_threaded: Cell<bool>,
1209+
multi_threaded: Cell<bool>,
12101210

12111211
/// Mapping of a vector index to a known set of thread
12121212
/// clocks, this is not directly mapping from a thread id

0 commit comments

Comments
 (0)