fix: cargo fmt and suppress dead_code warnings for unused paste-burst methods
This commit is contained in:
committed by
Hunter Bown
parent
09b4f7898b
commit
1ff5db1663
@@ -344,4 +344,4 @@ mod tests {
|
||||
// contract here).
|
||||
assert!(app.input.is_empty());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user