Fixed a silly refactoring bug

This commit is contained in:
Michael-F-Bryan
2023-11-08 23:47:34 +08:00
parent 2525bafa37
commit 10d2b6846f

View File

@ -16,7 +16,6 @@ use crate::{
DistributionInfo, PackageInfo, PackageSpecifier, PackageSummary, QueryError, Source, DistributionInfo, PackageInfo, PackageSpecifier, PackageSummary, QueryError, Source,
WebcHash, WebcHash,
}, },
Authentication,
}; };
/// A [`Source`] which will resolve dependencies by pinging a Wasmer-like GraphQL /// A [`Source`] which will resolve dependencies by pinging a Wasmer-like GraphQL
@ -147,7 +146,10 @@ impl WapmSource {
headers.insert(http::header::AUTHORIZATION, header); headers.insert(http::header::AUTHORIZATION, header);
} }
Err(e) => { Err(e) => {
tracing::warn!(error = &*e, "Unable to parse the token into a header",); tracing::warn!(
error = &e as &dyn std::error::Error,
"Unable to parse the token into a header",
);
} }
} }
} }