Use a Box for Yanked on File (#11755)

## Summary

See: https://github.com/astral-sh/uv/pull/11715.
This commit is contained in:
Charlie Marsh 2025-02-24 09:46:14 -10:00 committed by GitHub
parent a6ecf463fc
commit d9adba1cf5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 14 additions and 10 deletions

View file

@ -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
};