Skip to content

Commit

Permalink
chore: fix clippy warnings (#2550)
Browse files Browse the repository at this point in the history
## Description

Fixes clippy warnings:
- [needless borrows for generic
args](https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args)
- [md lazy
continuation](https://rust-lang.github.io/rust-clippy/master/index.html#/doc_lazy_continuation)
which simply means clippy wants us to use consistent indentation for
lists so
  that it can be sure how to format docs.

## Breaking Changes

n/a

## Notes & open questions

n/a

## Change checklist

- [x] Self-review.
- [x] Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.
- [ ] ~~tests if relevant.~~
- [ ] ~~All breaking changes documented.~~
  • Loading branch information
divagant-martian authored Jul 25, 2024
1 parent b5b7072 commit 956c51a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
//! Aljoscha Meyer:
//!
//! > Range-based set reconciliation is a simple approach to efficiently compute the union of two
//! sets over a network, based on recursively partitioning the sets and comparing fingerprints of
//! the partitions to probabilistically detect whether a partition requires further work.
//! > sets over a network, based on recursively partitioning the sets and comparing fingerprints of
//! > the partitions to probabilistically detect whether a partition requires further work.
//!
//! The crate exposes a [generic storage interface](store::Store). There is an implementation
//! of this interface, [store::fs::Store], that can be used either
Expand Down
2 changes: 2 additions & 0 deletions src/ranger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ pub trait RangeValue: Sized + Debug + Ord + PartialEq + Clone + 'static {}
/// Stores a range.
///
/// There are three possibilities
///
/// - x, x: All elements in a set, denoted with
/// - [x, y): x < y: Includes x, but not y
/// - S \ [y, x) y < x: Includes x, but not y.
///
/// This means that ranges are "wrap around" conceptually.
#[derive(Debug, Clone, Copy, PartialEq, Serialize, Deserialize, Default)]
pub struct Range<K> {
Expand Down

0 comments on commit 956c51a

Please sign in to comment.