From 147df39c72cef505c3be135ab69ca1a44daf3e57 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 18 Jan 2021 05:35:17 +0000 Subject: [PATCH 1/2] Update quickcheck requirement from 0.9.2 to 1.0.3 Updates the requirements on [quickcheck](https://github.com/BurntSushi/quickcheck) to permit the latest version. - [Release notes](https://github.com/BurntSushi/quickcheck/releases) - [Commits](https://github.com/BurntSushi/quickcheck/compare/0.9.2...1.0.3) Signed-off-by: dependabot-preview[bot] --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 0e2649d..292a06d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,7 +40,7 @@ futures = "0.3.4" async-std = "1.5.0" [dev-dependencies] -quickcheck = "0.9.2" +quickcheck = "1.0.3" data-encoding = "2.2.0" remove_dir_all = "0.6.0" tempfile = "3.1.0" From 99419a899c06d6cf9749459227dd973ef4d9c640 Mon Sep 17 00:00:00 2001 From: Bruno Tavares Date: Thu, 4 Feb 2021 23:50:17 -0300 Subject: [PATCH 2/2] Fix clippy warnings --- src/prelude.rs | 6 +----- src/storage/mod.rs | 6 +++--- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/prelude.rs b/src/prelude.rs index 4f304c7..eeede9a 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -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; diff --git a/src/storage/mod.rs b/src/storage/mod.rs index 96a75b6..c46948b 100644 --- a/src/storage/mod.rs +++ b/src/storage/mod.rs @@ -157,10 +157,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> { + ) -> futures::future::BoxFuture<'_, Result> { let bytes = async_std::task::block_on(async { self.signatures .read(HEADER_OFFSET + 64 * index, 64)