Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker committed Oct 29, 2024
1 parent 5b1fb8f commit 31464f3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 8 additions & 2 deletions src/emitters/callback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,14 @@ where
return false;
}

crate::utils::trace_log!("current_is_appropriate_end_tag_token: last_start_tag = {:?}", self.emitter_state.last_start_tag);
crate::utils::trace_log!("current_is_appropriate_end_tag_token: current_tag = {:?}", self.emitter_state.current_tag_name);
crate::utils::trace_log!(
"current_is_appropriate_end_tag_token: last_start_tag = {:?}",
self.emitter_state.last_start_tag
);
crate::utils::trace_log!(
"current_is_appropriate_end_tag_token: current_tag = {:?}",
self.emitter_state.current_tag_name
);
self.emitter_state.last_start_tag == self.emitter_state.current_tag_name
}
}
6 changes: 4 additions & 2 deletions tests/testutils.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::backtrace::BacktraceStatus;
use std::ops::Deref;
use std::sync::Once;
use std::panic::{self, UnwindSafe};
use std::sync::Once;

use libtest_mimic::Failed;

Expand All @@ -24,7 +24,9 @@ pub fn catch_unwind_and_report(f: impl FnOnce() + UnwindSafe) -> Result<(), Fail
panic::set_hook(Box::new(|_info| {
let backtrace = std::backtrace::Backtrace::capture();
if backtrace.status() != BacktraceStatus::Captured {
html5gum::testutils::trace_log("PANIC BACKTRACE: did not capture, use RUST_BACKTRACE=1");
html5gum::testutils::trace_log(
"PANIC BACKTRACE: did not capture, use RUST_BACKTRACE=1",
);
} else {
// clean up noisy frames from backtrace
let mut backtrace_str = String::new();
Expand Down

0 comments on commit 31464f3

Please sign in to comment.