mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-20 03:49:54 +00:00
Use a SmallString for the Yanked enum (#11715)
## Summary This is stored on `File`, which we create extensively. Easy way to reduce size.
This commit is contained in:
parent
1f7f9fdeb4
commit
4fc181dbf2
6 changed files with 18 additions and 4 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.to_string()))
|
||||
Some(Yanked::Reason(yanked.into()))
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue