Skip to content

Commit 0a52bf7

Browse files
committed
edited return type
1 parent f2bdfed commit 0a52bf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ pub fn get_capability(our: &Address, params: &str) -> Option<Capability> {
218218
}
219219

220220
/// get the next message body from the message queue, or propagate the error
221-
pub fn await_next_message_body() -> anyhow::Result<Vec<u8>> {
221+
pub fn await_next_message_body() -> Result<Vec<u8>, SendError> {
222222
match await_message() {
223223
Ok(msg) => Ok(msg.body().to_vec()),
224224
Err(e) => Err(e.into()),

0 commit comments

Comments
 (0)