@@ -137,7 +137,7 @@ pub struct QueueFile {
137137/// Policy for offset caching if enabled.
138138/// Notice that offsets frequency might be skewed due after series of adding/removal.
139139/// This shall not affect functional properties, only performance one.
140- #[ derive( Debug , Clone , Copy , PartialEq ) ]
140+ #[ derive( Debug , Clone , Copy , PartialEq , Eq ) ]
141141pub enum OffsetCacheKind {
142142 /// Linear offseting.
143143 ///
@@ -378,7 +378,7 @@ impl QueueFile {
378378 /// If set to true removing an element will also overwrite data with zero bytes.
379379 #[ inline]
380380 pub fn set_overwrite_on_remove ( & mut self , value : bool ) {
381- self . overwrite_on_remove = value
381+ self . overwrite_on_remove = value;
382382 }
383383
384384 /// Returns true if every write to file will be followed by `sync_data()` call.
@@ -396,7 +396,7 @@ impl QueueFile {
396396 /// If set to true every write to file will be followed by `sync_data()` call.
397397 #[ inline]
398398 pub fn set_sync_writes ( & mut self , value : bool ) {
399- self . inner . sync_writes = value
399+ self . inner . sync_writes = value;
400400 }
401401
402402 /// Returns true if skips header update upon adding enabled.
@@ -414,7 +414,7 @@ impl QueueFile {
414414 /// If set to true skips header update upon adding.
415415 #[ inline]
416416 pub fn set_skip_write_header_on_add ( & mut self , value : bool ) {
417- self . skip_write_header_on_add = value
417+ self . skip_write_header_on_add = value;
418418 }
419419
420420 /// Changes buffer size used for data reading.
@@ -457,7 +457,7 @@ impl QueueFile {
457457 self . elem_cnt
458458 }
459459
460- /// Synchronizes the underlying file, look at [File::sync_all] doc for more info.
460+ /// Synchronizes the underlying file, look at [` File::sync_all` ] doc for more info.
461461 pub fn sync_all ( & mut self ) -> Result < ( ) > {
462462 if self . skip_write_header_on_add {
463463 self . sync_header ( ) ?;
0 commit comments