Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bltavares committed Feb 5, 2021
1 parent 2a6b076 commit ce05a4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 1 addition & 5 deletions src/prelude.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
//! Convenience wrapper to import all of Hypercore's core.
//!
//! ```rust
//!
//! use hypercore::prelude::*;
//!
//! fn main () {
//! let feed = Feed::default();
//! }
//! let feed = Feed::default();
//! ```
pub use crate::feed::Feed;
// pub use feed_builder::FeedBuilder;
Expand Down
6 changes: 3 additions & 3 deletions src/storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ where
}

/// Search the signature stores for a `Signature`, starting at `index`.
pub fn next_signature<'a>(
&'a mut self,
pub fn next_signature(
&mut self,
index: u64,
) -> futures::future::BoxFuture<'a, Result<Signature>> {
) -> futures::future::BoxFuture<'_, Result<Signature>> {
let bytes = async_std::task::block_on(async {
self.signatures
.read(HEADER_OFFSET + 64 * index, 64)
Expand Down

0 comments on commit ce05a4e

Please sign in to comment.