From 388acd67382f6f6a60dd570a3ab40db7100a5dab Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Mon, 29 Nov 2021 09:50:43 +0900 Subject: [PATCH] Remove needless reference sign --- plume-common/src/activity_pub/inbox.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plume-common/src/activity_pub/inbox.rs b/plume-common/src/activity_pub/inbox.rs index f35d2060..9483a039 100644 --- a/plume-common/src/activity_pub/inbox.rs +++ b/plume-common/src/activity_pub/inbox.rs @@ -372,7 +372,7 @@ pub trait FromId: Sized { if !url.has_host() { return Err((None, InboxError::DerefError.into())); } - let host_header_value = HeaderValue::from_str(&url.host_str().expect("Unreachable")) + let host_header_value = HeaderValue::from_str(url.host_str().expect("Unreachable")) .map_err(|_| (None, InboxError::DerefError.into()))?; headers.insert(HOST, host_header_value); if let Some(proxy) = proxy {