mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Fix build failure with tracing feature (#35009)
* Fix build failure with tracing feature Skip tracing preferences for now to avoid: ``` error[E0277]: `Preferences` doesn't implement `std::fmt::Debug` ``` Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Fix warning about unused tracing span. The tracing span is "used" when it is dropped, so in that sense it is a false positive. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> --------- Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
parent
d470f219b1
commit
8fb715847d
2 changed files with 2 additions and 1 deletions
|
@ -43,6 +43,7 @@ pub(crate) fn is_execution_stack_empty() -> bool {
|
||||||
pub(crate) struct AutoEntryScript {
|
pub(crate) struct AutoEntryScript {
|
||||||
global: DomRoot<GlobalScope>,
|
global: DomRoot<GlobalScope>,
|
||||||
#[cfg(feature = "tracing")]
|
#[cfg(feature = "tracing")]
|
||||||
|
#[allow(dead_code)]
|
||||||
span: tracing::span::EnteredSpan,
|
span: tracing::span::EnteredSpan,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -227,7 +227,7 @@ where
|
||||||
#[cfg_attr(
|
#[cfg_attr(
|
||||||
feature = "tracing",
|
feature = "tracing",
|
||||||
tracing::instrument(
|
tracing::instrument(
|
||||||
skip(rendering_context, embedder, window),
|
skip(preferences, rendering_context, embedder, window),
|
||||||
fields(servo_profiling = true),
|
fields(servo_profiling = true),
|
||||||
level = "trace",
|
level = "trace",
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue