diff options
author | iximeow <me@iximeow.net> | 2024-06-18 13:41:52 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2024-06-18 13:41:52 -0700 |
commit | 00dc2b64849328cc48c809163ad9fd105d8439aa (patch) | |
tree | 1156b70522a01c4504fb3e5186d3513128afe7a4 /src | |
parent | 2ac793524c4472887f60541a43ce74c57d4f22d1 (diff) |
helper to clear BigEnoughString
Diffstat (limited to 'src')
-rw-r--r-- | src/long_mode/display.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/long_mode/display.rs b/src/long_mode/display.rs index c7247e7..a49cbd0 100644 --- a/src/long_mode/display.rs +++ b/src/long_mode/display.rs @@ -894,6 +894,10 @@ impl DisplaySink for BigEnoughString { } impl BigEnoughString { + pub fn clear(&mut self) { + self.content.clear(); + } + pub fn into_inner(self) -> alloc::string::String { self.content } |