aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2024-06-18 13:41:52 -0700
committeriximeow <me@iximeow.net>2024-06-18 13:41:52 -0700
commit00dc2b64849328cc48c809163ad9fd105d8439aa (patch)
tree1156b70522a01c4504fb3e5186d3513128afe7a4
parent2ac793524c4472887f60541a43ce74c57d4f22d1 (diff)
helper to clear BigEnoughString
-rw-r--r--src/long_mode/display.rs4
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
}