Skip to content

Commit

Permalink
fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
cowlicks committed Sep 25, 2024
1 parent e7a4a0c commit 27d2848
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/hb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ use crate::{
KeyValueData, Shared,
};

/// An append only B-Tree built on [`Hypercore`](hypercore::Hypercore). It provides a key-value
/// An append only B-Tree built on [`Hypercore`](hypercore::Hypercore).
///
/// It provides a key-value
/// store API, with methods for [inserting](Hyperbee::put), [getting](Hyperbee::get), and
/// [deleting](Hyperbee::del) key-value pair. As well as creating [sorted
/// iterators](Hyperbee::traverse), and ["sub" B-Trees](Hyperbee::sub) for grouping related data.
Expand Down
7 changes: 5 additions & 2 deletions src/prefixed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ impl Default for PrefixedConfig {
}
}

/// A "sub" [`Hyperbee`](crate::Hyperbee), which can be used for grouping data. [`get`](Self::get), [`put`](Self::put), [`del`](Self::del), [`traverse`](Self::traverse) operations are automatically prefixed
/// with [`Prefixed::prefix`] + [`PrefixedConfig::seperator`] where appropriate.
/// A "sub" [`Hyperbee`](crate::Hyperbee), used for grouping data.
///
/// [`get`](Self::get), [`put`](Self::put), [`del`](Self::del), [`traverse`](Self::traverse)
/// operations are automatically prefixed with [`Prefixed::prefix`] + [`PrefixedConfig::seperator`]
/// where appropriate.
#[derive(Debug)]
pub struct Prefixed {
/// All keys inserted with [`Prefixed::put`] are prefixed with this value
Expand Down

0 comments on commit 27d2848

Please sign in to comment.