Skip to content

Commit

Permalink
chore: remove warnings as a result of new rust version (#507)
Browse files Browse the repository at this point in the history
* chore: disable tarpaulin warnings

* chore: remove unneeded sync-middleware feature
  • Loading branch information
sighphyre authored Aug 6, 2024
1 parent ea9af2e commit 933659b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 3 additions & 0 deletions server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ path-guid = "6F606A3B-C7E9-43EC-8B6E-91D7B74F80FC"
license = false
eula = false

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tarpaulin_include)'] }

[dependencies]
actix-cors = "0.7.0"
actix-http = "3.8.0"
Expand Down
6 changes: 0 additions & 6 deletions server/src/middleware/request_tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,6 @@ where
let span = self.tracer.build_with_context(builder, &parent_context);
let cx = parent_context.with_span(span);

#[cfg(feature = "sync-middleware")]
let attachment = cx.clone().attach();

let fut = self
.service
.call(req)
Expand Down Expand Up @@ -187,9 +184,6 @@ where
}
});

#[cfg(feature = "sync-middleware")]
drop(attachment);

Box::pin(fut)
}
}
Expand Down

0 comments on commit 933659b

Please sign in to comment.