fix: cargo fmt and suppress dead_code warnings for unused paste-burst methods

This commit is contained in:
donglovejava
2026-05-29 06:49:16 +08:00
committed by Hunter Bown
parent 09b4f7898b
commit 1ff5db1663
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -344,4 +344,4 @@ mod tests {
// contract here).
assert!(app.input.is_empty());
}
}
}
+2
View File
@@ -77,6 +77,7 @@ impl PasteBurst {
CharDecision::RetainFirstChar
}
#[allow(dead_code)]
pub fn on_plain_char_no_hold(&mut self, now: Instant) -> Option<CharDecision> {
self.note_plain_char(now);
@@ -176,6 +177,7 @@ impl PasteBurst {
self.burst_window_until = Some(now + PASTE_ENTER_SUPPRESS_WINDOW);
}
#[allow(dead_code)]
pub fn try_append_char_if_active(&mut self, ch: char, now: Instant) -> bool {
if self.active || !self.buffer.is_empty() {
self.append_char_to_buffer(ch, now);