Skip to content

Commit bd63a19

Browse files
author
Max (rpg integration)
committed
fix(ash): move MIN_HEIGHT before draw_frame doc block to fix empty_line_after_doc_comments
1 parent 241e895 commit bd63a19

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/ash/renderer.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -792,16 +792,15 @@ fn render_drill_table(
792792
frame.render_widget(Paragraph::new(lines), header_chunks[1]);
793793
}
794794

795+
// Minimum terminal height required to render the `/ash` TUI without garbling.
796+
const MIN_HEIGHT: u16 = 18;
797+
795798
/// Draw a single frame of the `/ash` TUI.
796799
///
797800
/// * `frame` — ratatui frame to render into.
798801
/// * `snapshots` — ring buffer of raw snapshots, most recent last.
799802
/// * `state` — current drill-down / zoom state.
800803
/// * `no_color` — when true, use terminal default colors.
801-
802-
// Minimum terminal height required to render the `/ash` TUI without garbling.
803-
const MIN_HEIGHT: u16 = 18;
804-
805804
pub fn draw_frame(frame: &mut Frame, snapshots: &[AshSnapshot], state: &AshState, no_color: bool) {
806805
let area = frame.area();
807806

0 commit comments

Comments
 (0)