From 1ba354a1a5f727f9ca23872c43247d668c45da6e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 11 Nov 2024 04:25:06 +0100 Subject: [PATCH] `hostmeta`: Fully qualify `reqwest::header::HeaderValue` --- acrate-hostmeta/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/acrate-hostmeta/src/lib.rs b/acrate-hostmeta/src/lib.rs index e11d61f..5e2cc6f 100644 --- a/acrate-hostmeta/src/lib.rs +++ b/acrate-hostmeta/src/lib.rs @@ -2,7 +2,6 @@ //! //! [RFC 6415]: https://datatracker.ietf.org/doc/html/rfc6415 -use reqwest::header::HeaderValue; use serde::Deserialize; /// A [host-meta document] in JRD representation. @@ -334,7 +333,7 @@ pub enum HostMetaGetJRDError { } /// Extract the MIME type from the value of the `Content-Type` header. -fn extract_mime_from_content_type(value: &HeaderValue) -> Option { +fn extract_mime_from_content_type(value: &reqwest::header::HeaderValue) -> Option { let value = value.to_str().ok()?; match value.split_once("; ") { None => Some(value.to_string()),