Skip to content

Commit feafd3b

Browse files
committed
Update rustls-webpki
1 parent fd97587 commit feafd3b

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/virtual-fs/src/mem_fs/file_opener.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,7 @@ mod test_file_opener {
601601

602602
type OpenBeforeHandleHook = Box<dyn FnOnce() + 'static>;
603603

604+
#[cfg(test)]
604605
thread_local! {
605606
static OPEN_BEFORE_HANDLE_HOOK: RefCell<Option<OpenBeforeHandleHook>> = RefCell::new(None);
606607
}
@@ -628,7 +629,8 @@ mod test_file_opener {
628629
}
629630
}
630631

631-
pub(super) fn run_open_before_handle_hook() {
632+
#[cfg(test)]
633+
fn run_open_before_handle_hook() {
632634
OPEN_BEFORE_HANDLE_HOOK.with(|slot| {
633635
if let Some(hook) = slot.borrow_mut().take() {
634636
hook();

0 commit comments

Comments
 (0)