Auto merge of #81077 - bugadani:shrink, r=Mark-Simulacrum

Remove unnecessary manual shrink_to_fit calls
This commit is contained in:
bors 2021-01-16 14:04:43 +00:00
commit 63a83c5f55
1 changed files with 0 additions and 3 deletions

View File

@ -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()