From 00dc2b64849328cc48c809163ad9fd105d8439aa Mon Sep 17 00:00:00 2001 From: iximeow Date: Tue, 18 Jun 2024 13:41:52 -0700 Subject: helper to clear BigEnoughString --- src/long_mode/display.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/long_mode') 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 } -- cgit v1.1