mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-15 05:26:47 +00:00
Auto merge of #81077 - bugadani:shrink, r=Mark-Simulacrum
Remove unnecessary manual shrink_to_fit calls
This commit is contained in:
commit
63a83c5f55
@ -87,7 +87,6 @@ impl LitKind {
|
||||
}
|
||||
});
|
||||
error?;
|
||||
buf.shrink_to_fit();
|
||||
Symbol::intern(&buf)
|
||||
} else {
|
||||
symbol
|
||||
@ -105,7 +104,6 @@ impl LitKind {
|
||||
}
|
||||
});
|
||||
error?;
|
||||
buf.shrink_to_fit();
|
||||
LitKind::ByteStr(buf.into())
|
||||
}
|
||||
token::ByteStrRaw(_) => {
|
||||
@ -120,7 +118,6 @@ impl LitKind {
|
||||
}
|
||||
});
|
||||
error?;
|
||||
buf.shrink_to_fit();
|
||||
buf
|
||||
} else {
|
||||
symbol.to_string().into_bytes()
|
||||
|
Loading…
Reference in New Issue
Block a user