Skip to content

Commit

Permalink
chore: Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
matheus23 committed Mar 1, 2024
1 parent 7e4f9b8 commit f87bad2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion car-mirror-axum/src/extract/dag_cbor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ where
type Rejection = DagCborRejection;

#[tracing::instrument(skip_all, ret, err)]
#[allow(clippy::blocks_in_conditions)]
#[allow(clippy::style)] // clippy::blocks_in_conditions in tracing::instrument https://github.com/rust-lang/rust-clippy/issues/12281
async fn from_request(req: Request, state: &S) -> Result<Self, Self::Rejection> {
let mime = req
.headers()
Expand Down
8 changes: 5 additions & 3 deletions car-mirror-wasm/src/exports.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
use crate::blockstore::{BlockStore, ForeignBlockStore};
use crate::messages::{PullRequest, PushResponse};
use crate::utils::{handle_jserr, parse_cid};
use crate::{
blockstore::{BlockStore, ForeignBlockStore},
messages::{PullRequest, PushResponse},
utils::{handle_jserr, parse_cid},
};
use car_mirror::{cache::NoCache, common::Config};
use futures::TryStreamExt;
use js_sys::{Error, Promise, Uint8Array};
Expand Down

0 comments on commit f87bad2

Please sign in to comment.