Replace into_owned with into

This commit is contained in:
SleeplessOne1917 2024-05-02 19:46:39 -04:00
parent c9ab99515d
commit ae197f868a

View file

@ -162,7 +162,7 @@ fn extract_opengraph_data(html_bytes: &[u8], url: &Url) -> LemmyResult<OpenGraph
if let Some(charset) = page.meta.get("charset") {
if charset != UTF_8.name() {
if let Some(encoding) = Encoding::for_label(charset.as_bytes()) {
page = HTML::from_string(encoding.decode(html_bytes).0.into_owned(), None)?;
page = HTML::from_string(encoding.decode(html_bytes).0.into(), None)?;
}
}
}