Skip to content

Commit f009e2c

Browse files
committed
Update ed25519-dalek 1.0.1 -> 2.1.1
1 parent eca121d commit f009e2c

File tree

11 files changed

+165
-99
lines changed

11 files changed

+165
-99
lines changed

Cargo.lock

Lines changed: 90 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ clap = { version = "4.4.4", features = ["derive", "env"], optional = true }
2121
data-encoding = "2.3.2"
2222
derive_builder = "0.10.2"
2323
derive_more = "0.99.17"
24-
ed25519-dalek = { version = "1.0.1", optional = true }
24+
ed25519-dalek = { version = "2.1.1", optional = true }
2525
futures = "0.3.19"
2626
indexmap = "1.9.3"
2727
lazy_static = "1.4.0"

src/bundlr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ where
125125
pub fn build(self) -> Result<Bundlr<Currency>, BuilderError> {
126126
let url = self.url.unwrap_or(Url::parse(BUNDLR_DEFAULT_URL).unwrap());
127127

128-
let client = self.client.unwrap_or_else(reqwest::Client::new);
128+
let client = self.client.unwrap_or_default();
129129

130130
let pub_info = match self.pub_info {
131131
Some(p) => p,

src/deep_hash.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,14 @@ use crate::{
88
consts::{BLOB_AS_BUFFER, LIST_AS_BUFFER},
99
error::BundlrError,
1010
};
11-
use futures::{Stream, TryStream, TryStreamExt};
11+
use futures::{Stream, TryStreamExt};
1212

1313
pub enum DeepHashChunk<'a> {
1414
Chunk(Bytes),
1515
Stream(&'a mut Pin<Box<dyn Stream<Item = anyhow::Result<Bytes>>>>),
1616
Chunks(Vec<DeepHashChunk<'a>>),
1717
}
1818

19-
trait Foo: Stream<Item = anyhow::Result<Bytes>> + TryStream {}
20-
2119
pub async fn deep_hash(chunk: DeepHashChunk<'_>) -> Result<Bytes, BundlrError> {
2220
match chunk {
2321
DeepHashChunk::Chunk(b) => {

src/deep_hash_sync.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ use crate::{
66
deep_hash::DeepHashChunk,
77
error::BundlrError,
88
};
9-
use futures::{Stream, TryStream};
10-
11-
trait Foo: Stream<Item = anyhow::Result<Bytes>> + TryStream {}
129

1310
pub fn deep_hash_sync(chunk: DeepHashChunk) -> Result<Bytes, BundlrError> {
1411
match chunk {

0 commit comments

Comments
 (0)