This commit is contained in:
Andras Schmelczer 2025-07-06 13:04:56 +01:00
parent 6d56177ca8
commit 78fe3fd6fd
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
5 changed files with 7 additions and 7 deletions

View file

@ -53,9 +53,7 @@ impl StringBuilder<'_> {
/// Returns the currently built buffer and clears it to allow consuming
/// the result incrementally.
pub fn take(&mut self) -> String {
std::mem::take(&mut self.buffer)
}
pub fn take(&mut self) -> String { std::mem::take(&mut self.buffer) }
/// Get a slice of the remaining original string. The slice starts from
/// where the next delete/retain operation would start and is of length