Skip to content

Commit a4845dc

Browse files
committed
0.2.3: fix versioning + better Error impl
1 parent 651427b commit a4845dc

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ cargo add batched
99
Or add this to your `Cargo.toml`:
1010
```toml
1111
[dependencies]
12-
batched = "0.2.1"
12+
batched = "0.2.3"
1313
```
1414

1515
## #[batched]

batched/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "batched"
33
description = "rust macro util for batching expensive operations"
4-
version = "0.2.1"
4+
version = "0.2.3"
55
edition = "2024"
66
license = "MIT"
77
readme = "../README.md"
@@ -11,4 +11,4 @@ keywords = ["batch", "performance", "efficient"]
1111

1212
[dependencies]
1313
anyhow = "1.0.98"
14-
batched_derive = { version = "0.2", path = "../batched_derive" }
14+
batched_derive = { version = "0.2.1", path = "../batched_derive" }

batched/src/error.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,7 @@ impl<E> SharedError<E> {
3535
}
3636
}
3737

38-
impl<E: std::error::Error + Debug + Display> Error for SharedError<E> {
39-
fn source(&self) -> Option<&(dyn Error + 'static)> {
40-
self.inner.source()
41-
}
42-
}
38+
impl<E: Debug + Display> Error for SharedError<E> {}
4339

4440
impl<E> From<E> for SharedError<E> {
4541
fn from(inner: E) -> Self {

0 commit comments

Comments
 (0)