Skip to content

Commit bd83ff6

Browse files
authored
Expand to block expression in error macro (#81)
1 parent 4559eb4 commit bd83ff6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
### Changed
1313

1414
- MSRV is now 1.56.1
15+
- Fix expansion of internal error macro
1516

1617
### Fixed
1718

src/error.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ impl Error {
4848
}
4949

5050
macro_rules! internal_error {
51-
($ctx: expr) => {
51+
($ctx: expr) => {{
5252
return Err($crate::error::Error::Internal($ctx.into()));
53-
}
53+
}}
5454
}
5555

5656
pub(crate) trait ResultExt<T> {

0 commit comments

Comments
 (0)