You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by al...@apache.org on 2022/03/12 12:11:45 UTC

[arrow-datafusion] branch master updated: Fix minor clippy issue (#1995)

This is an automated email from the ASF dual-hosted git repository.

alamb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git


The following commit(s) were added to refs/heads/master by this push:
     new fd8a155  Fix minor clippy issue (#1995)
fd8a155 is described below

commit fd8a1554b0c2c5efe3b857ee0aac20e64d9a1c2a
Author: Andrew Lamb <an...@nerdnetworks.org>
AuthorDate: Sat Mar 12 07:11:38 2022 -0500

    Fix minor clippy issue (#1995)
---
 ballista/rust/core/src/event_loop.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ballista/rust/core/src/event_loop.rs b/ballista/rust/core/src/event_loop.rs
index af18ddc..217b7fc 100644
--- a/ballista/rust/core/src/event_loop.rs
+++ b/ballista/rust/core/src/event_loop.rs
@@ -134,8 +134,8 @@ pub struct EventSender<E> {
 
 impl<E> EventSender<E> {
     pub async fn post_event(&self, event: E) -> Result<()> {
-        Ok(self.tx_event.send(event).await.map_err(|e| {
+        self.tx_event.send(event).await.map_err(|e| {
             BallistaError::General(format!("Fail to send event due to {}", e))
-        })?)
+        })
     }
 }