mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-05-18 09:52:40 +00:00
Replace into_owned with into
This commit is contained in:
parent
c9ab99515d
commit
ae197f868a
|
@ -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)?;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue