mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-09-27 22:01:57 +00:00
Replace into_owned with into
This commit is contained in:
parent
c9ab99515d
commit
ae197f868a
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ fn extract_opengraph_data(html_bytes: &[u8], url: &Url) -> LemmyResult<OpenGraph
|
||||||
if let Some(charset) = page.meta.get("charset") {
|
if let Some(charset) = page.meta.get("charset") {
|
||||||
if charset != UTF_8.name() {
|
if charset != UTF_8.name() {
|
||||||
if let Some(encoding) = Encoding::for_label(charset.as_bytes()) {
|
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