Skip to content

Commit 929dc9a

Browse files
committed
Add note to deprecated attributes.
1 parent 824271f commit 929dc9a

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/lib.rs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@
1616
//! `queue-file` crate is a feature complete and binary compatible port of `QueueFile` class from
1717
//! Tape2 by Square, Inc. Check the original project [here](https://github.com/square/tape).
1818
19-
#![warn(clippy::pedantic)]
2019
#![warn(clippy::nursery)]
20+
#![warn(clippy::pedantic)]
21+
#![warn(clippy::mutex_atomic)]
22+
#![warn(clippy::rc_buffer)]
23+
#![warn(clippy::rc_mutex)]
24+
// #![warn(clippy::unwrap_used)]
2125
#![allow(clippy::cast_possible_truncation)]
2226
#![allow(clippy::cast_possible_wrap)]
2327
#![allow(clippy::cast_precision_loss)]
@@ -394,8 +398,7 @@ impl QueueFile {
394398
self.overwrite_on_remove
395399
}
396400

397-
/// Use [`QueueFile::overwrite_on_remove`] instead.
398-
#[deprecated]
401+
#[deprecated(since = "1.4.7", note = "Use `overwrite_on_remove` instead.")]
399402
pub const fn get_overwrite_on_remove(&self) -> bool {
400403
self.overwrite_on_remove()
401404
}
@@ -412,8 +415,7 @@ impl QueueFile {
412415
self.inner.sync_writes
413416
}
414417

415-
/// Use [`QueueFile::sync_writes`] instead.
416-
#[deprecated]
418+
#[deprecated(since = "1.4.7", note = "Use `sync_writes` instead.")]
417419
pub const fn get_sync_writes(&self) -> bool {
418420
self.sync_writes()
419421
}
@@ -430,8 +432,8 @@ impl QueueFile {
430432
self.skip_write_header_on_add
431433
}
432434

433-
/// Use [`QueueFile::skip_write_header_on_add`] instead.
434-
#[deprecated]
435+
436+
#[deprecated(since = "1.4.7", note = "Use `skip_write_header_on_add` instead.")]
435437
pub const fn get_skip_write_header_on_add(&self) -> bool {
436438
self.skip_write_header_on_add()
437439
}
@@ -455,8 +457,7 @@ impl QueueFile {
455457
self.offset_cache_kind
456458
}
457459

458-
/// Use [`QueueFile::cache_offset_policy`] instead.
459-
#[deprecated]
460+
#[deprecated(since = "1.4.7", note = "Use `cache_offset_policy` instead.")]
460461
pub const fn get_cache_offset_policy(&self) -> Option<OffsetCacheKind> {
461462
self.cache_offset_policy()
462463
}

0 commit comments

Comments
 (0)