Skip to content

Commit 12160f9

Browse files
committed
avoid multi-alias line that isn't 1.48 compatible
1 parent cd5ea71 commit 12160f9

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/tree.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ fn bounds_error() -> Result<()> {
100100
/// # Ok(()) }
101101
/// ```
102102
#[derive(Clone)]
103-
#[doc(alias("keyspace", "bucket", "table"))]
103+
#[doc(alias = "keyspace")]
104+
#[doc(alias = "bucket")]
105+
#[doc(alias = "table")]
104106
pub struct Tree(pub(crate) Arc<TreeInner>);
105107

106108
#[allow(clippy::module_name_repetitions)]
@@ -544,7 +546,8 @@ impl Tree {
544546
/// assert_eq!(db.remove(&[1]), Ok(None));
545547
/// # Ok(()) }
546548
/// ```
547-
#[doc(alias("delete", "del"))]
549+
#[doc(alias = "delete")]
550+
#[doc(alias = "del")]
548551
pub fn remove<K: AsRef<[u8]>>(&self, key: K) -> Result<Option<IVec>> {
549552
let mut guard = pin();
550553
let _cc = concurrency_control::read();
@@ -610,7 +613,10 @@ impl Tree {
610613
/// # Ok(()) }
611614
/// ```
612615
#[allow(clippy::needless_pass_by_value)]
613-
#[doc(alias("cas", "tas", "test_and_set", "test_and_swap", "compare_and_set"))]
616+
#[doc(alias = "cas")]
617+
#[doc(alias = "tas")]
618+
#[doc(alias = "test_and_swap")]
619+
#[doc(alias = "compare_and_set")]
614620
pub fn compare_and_swap<K, OV, NV>(
615621
&self,
616622
key: K,

0 commit comments

Comments
 (0)