Skip to content

Commit 87ab850

Browse files
committed
fix: use pub(crate) visibility for RecordingTimestampGenerator
The struct and its methods only need crate-level visibility since the module itself is pub(crate). Using pub triggers the unnameable_types lint.
1 parent 5cb0fbf commit 87ab850

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

scylla-rust-wrapper/src/timestamp_generator.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pub enum CassTimestampGen {
1717
/// A wrapper around `MonotonicTimestampGenerator` that records all generated timestamps.
1818
/// This is used for integration testing purposes only.
1919
#[cfg(cpp_integration_testing)]
20+
#[allow(unnameable_types)]
2021
pub struct RecordingTimestampGenerator {
2122
inner: MonotonicTimestampGenerator,
2223
timestamps: std::sync::Mutex<Vec<i64>>,

0 commit comments

Comments
 (0)