From 0cc98c771e00ae839e1c772ca8bb47d240b949df Mon Sep 17 00:00:00 2001 From: konsti Date: Fri, 12 Jan 2024 15:47:58 +0100 Subject: [PATCH] Fix a tracing panic (#899) --- crates/puffin-installer/src/downloader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/puffin-installer/src/downloader.rs b/crates/puffin-installer/src/downloader.rs index 91631c071..81e592909 100644 --- a/crates/puffin-installer/src/downloader.rs +++ b/crates/puffin-installer/src/downloader.rs @@ -153,7 +153,7 @@ impl<'a, Context: BuildContext + Send + Sync> Downloader<'a, Context> { } /// Download, build, and unzip a single wheel. - #[instrument(skip_all, fields(name = % dist, size = ? dist.size(), url = dist.file().unwrap().url))] + #[instrument(skip_all, fields(name = % dist, size = ? dist.size(), url = dist.file().map(|file| file.url.as_str()).unwrap_or_default()))] pub async fn get_wheel( &self, dist: Dist,