style: format seluruh workspace dengan cargo fmt
Menyeragamkan format kode sesuai rustfmt (126 file). Sebelumnya lefthook pre-commit 'cargo fmt --check' akan gagal pada commit apa pun.
This commit is contained in:
@@ -33,7 +33,9 @@ impl Component for InputComponent {
|
||||
.border_style(Style::default().fg(Theme::BORDER))
|
||||
.title(Span::styled(
|
||||
dropdown_title,
|
||||
Style::default().fg(Theme::PRIMARY).add_modifier(Modifier::BOLD),
|
||||
Style::default()
|
||||
.fg(Theme::PRIMARY)
|
||||
.add_modifier(Modifier::BOLD),
|
||||
))
|
||||
.style(Style::default().bg(Theme::SURFACE_ELEVATED));
|
||||
|
||||
@@ -98,7 +100,7 @@ impl Component for InputComponent {
|
||||
let char_len = c.len_utf8();
|
||||
(c.to_string(), &after[char_len..])
|
||||
};
|
||||
|
||||
|
||||
// Blinking cursor logic based on tick count
|
||||
let cursor_style = if state.misc.tick_count % 10 < 5 {
|
||||
Style::default()
|
||||
@@ -111,7 +113,7 @@ impl Component for InputComponent {
|
||||
.fg(Theme::BG)
|
||||
.add_modifier(Modifier::BOLD)
|
||||
};
|
||||
|
||||
|
||||
spans.push(Span::styled(cursor_char, cursor_style));
|
||||
if !after_char.is_empty() {
|
||||
spans.push(Span::raw(after_char.to_string()));
|
||||
|
||||
Reference in New Issue
Block a user