We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05c5cf3 commit b537b58Copy full SHA for b537b58
src/content/content_location.rs
@@ -69,7 +69,7 @@ impl ContentLocation {
69
70
/// Get the `HeaderValue`.
71
pub fn value(&self) -> HeaderValue {
72
- let output = format!("{}", self.url.as_str());
+ let output = self.url.to_string();
73
74
// SAFETY: the internal string is validated to be ASCII.
75
unsafe { HeaderValue::from_bytes_unchecked(output.into()) }
0 commit comments