Skip to content

Commit b537b58

Browse files
committed
changes from clippy suggestions
1 parent 05c5cf3 commit b537b58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/content_location.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ impl ContentLocation {
6969

7070
/// Get the `HeaderValue`.
7171
pub fn value(&self) -> HeaderValue {
72-
let output = format!("{}", self.url.as_str());
72+
let output = self.url.to_string();
7373

7474
// SAFETY: the internal string is validated to be ASCII.
7575
unsafe { HeaderValue::from_bytes_unchecked(output.into()) }

0 commit comments

Comments
 (0)