Skip to content

Commit

Permalink
fix: false clippy positive
Browse files Browse the repository at this point in the history
  • Loading branch information
ar3s3ru committed Feb 23, 2024
1 parent 042028b commit 4a4977e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eventually/src/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ where
<T as Aggregate>::Event: Debug,
Inner: aggregate::Repository<T>,
{
#[allow(clippy::blocks_in_conditions)] // NOTE(ar3s3ru): seems to be a false positive.
#[instrument(name = "aggregate::repository::Getter.get", ret, err, skip(self))]
async fn get(&self, id: &T::Id) -> Result<aggregate::Root<T>, aggregate::repository::GetError> {

Check warning on line 38 in eventually/src/tracing.rs

View check run for this annotation

Codecov / codecov/patch

eventually/src/tracing.rs#L37-L38

Added lines #L37 - L38 were not covered by tests
self.inner.get(id).await
Expand All @@ -47,6 +48,7 @@ where
<T as Aggregate>::Event: Debug,
Inner: aggregate::Repository<T>,
{
#[allow(clippy::blocks_in_conditions)] // NOTE(ar3s3ru): seems to be a false positive.
#[instrument(name = "aggregate::repository::Saver.save", ret, err, skip(self))]

Check warning on line 52 in eventually/src/tracing.rs

View check run for this annotation

Codecov / codecov/patch

eventually/src/tracing.rs#L52

Added line #L52 was not covered by tests
async fn save(
&self,
Expand Down Expand Up @@ -123,6 +125,7 @@ where
StreamId: Debug + Send + Sync,
Event: message::Message + Debug + Send + Sync,
{
#[allow(clippy::blocks_in_conditions)] // NOTE(ar3s3ru): seems to be a false positive.
#[instrument(name = "event::Store.append", ret, err, skip(self))]
async fn append(
&self,
Expand Down

0 comments on commit 4a4977e

Please sign in to comment.