Remove unnecessary manual shrink_to_fit calls
This commit is contained in:
parent
18ec4a9a74
commit
dc932cdf88
1 changed files with 0 additions and 3 deletions
|
@ -87,7 +87,6 @@ impl LitKind {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
error?;
|
error?;
|
||||||
buf.shrink_to_fit();
|
|
||||||
Symbol::intern(&buf)
|
Symbol::intern(&buf)
|
||||||
} else {
|
} else {
|
||||||
symbol
|
symbol
|
||||||
|
@ -105,7 +104,6 @@ impl LitKind {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
error?;
|
error?;
|
||||||
buf.shrink_to_fit();
|
|
||||||
LitKind::ByteStr(buf.into())
|
LitKind::ByteStr(buf.into())
|
||||||
}
|
}
|
||||||
token::ByteStrRaw(_) => {
|
token::ByteStrRaw(_) => {
|
||||||
|
@ -120,7 +118,6 @@ impl LitKind {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
error?;
|
error?;
|
||||||
buf.shrink_to_fit();
|
|
||||||
buf
|
buf
|
||||||
} else {
|
} else {
|
||||||
symbol.to_string().into_bytes()
|
symbol.to_string().into_bytes()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue