mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 10:58:28 +00:00
Use a Box
for Yanked
on File
(#11755)
## Summary See: https://github.com/astral-sh/uv/pull/11715.
This commit is contained in:
parent
a6ecf463fc
commit
d9adba1cf5
5 changed files with 14 additions and 10 deletions
|
@ -184,7 +184,7 @@ impl SimpleHtml {
|
|||
let yanked = if let Some(yanked) = link.attributes().get("data-yanked").flatten() {
|
||||
let yanked = std::str::from_utf8(yanked.as_bytes())?;
|
||||
let yanked = html_escape::decode_html_entities(yanked);
|
||||
Some(Yanked::Reason(yanked.into()))
|
||||
Some(Box::new(Yanked::Reason(yanked.into())))
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue